Skip to content

drpebcak/terraform-rancher-workload-cluster

Repository files navigation

Requirements

Name Version
terraform >= 0.12
terraform >= 0.13

Providers

Name Version
aws n/a
rancher2 n/a

Modules

No modules.

Resources

Name Type
aws_autoscaling_group.master resource
aws_autoscaling_group.worker resource
aws_iam_access_key.etcd_backup_user resource
aws_iam_instance_profile.cloud_provider_master resource
aws_iam_instance_profile.cloud_provider_worker resource
aws_iam_role.cloud_provider_master resource
aws_iam_role.cloud_provider_worker resource
aws_iam_role_policy.cloud_provider_master resource
aws_iam_role_policy.cloud_provider_worker resource
aws_iam_user.etcd_backup_user resource
aws_iam_user_policy.etcd_backup_user resource
aws_launch_template.master resource
aws_launch_template.worker resource
aws_s3_bucket.etcd_backups resource
aws_s3_bucket_public_access_block.etcd_backups resource
aws_security_group.cluster resource
aws_security_group_rule.cluster_all_self resource
aws_security_group_rule.cluster_egress_all resource
aws_security_group_rule.cluster_ingress_http resource
aws_security_group_rule.cluster_ingress_https resource
rancher2_cluster.cluster resource
rancher2_cluster_role_template_binding.deploy resource
rancher2_cluster_sync.cluster resource
aws_ami.ubuntu data source

Inputs

Name Description Type Default Required
aws_region Region to deploy AWS resources in string "us-east-1" no
backup_interval_hours Interval between etcd backups number 6 no
backup_retention Number of etcd backups to retain number 12 no
cloud_provider_name RKE Cloud Provider name to enable string "aws" no
cluster_cidr Cidr to use for overlay network string null no
cluster_description Description of K8S clusters for Rancher string "Terraform managed RKE cluster" no
cluster_dns_server IP for cluster dns service. Should be within service_cluster_ip_range string null no
deploy_user_enabled Define whether to give permissions for a deploy user bool true no
drain_delete_local_data Delete local data while draining bool false no
drain_force Force the drain of RKE Nodes bool false no
drain_timeout Node drain timeout number 60 no
extra_master_security_groups A list of extra security groups to assign to master nodes list(string) [] no
extra_worker_security_groups A list of extra security groups to assign to worker nodes list(string) [] no
ingress_provider Provider for ingress. Either 'nginx' or 'none' string null no
kube_api_extra_args extra_args for kube-api map(any) null no
kube_controller_extra_args extra_args for kube-controller map(any) null no
kubelet_extra_args extra_args for kubelet map(any) null no
kubernetes_version Version of Kubernetes to install string "v1.17.0-rancher1-2" no
master_instance_type Instance Types for K8S Master nodes string "m5a.large" no
master_node_count Number of Master nodes to provision number 3 no
master_tags Map of tags for master nodes to merge with defaults map(any) {} no
master_volume_type Volume Type for K8S Master nodes string "gp3" no
name Name to identify Kubernetes cluster string n/a yes
private_subnets A list of private subnets to create ec2 instances in list(string) n/a yes
rancher_api_url URL for Rancher API string n/a yes
rancher_deploy_user ID of Deploy user inside Rancher string n/a yes
rancher_token_key API Token for Rancher Admin string n/a yes
scheduler_extra_args extra_args for kube-scheduler map(any) null no
service_cluster_ip_range Cidr to use for services string null no
ssh_keys Public SSH keys to give to instances list(string)
[
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN5O7k6gRYCU7YPkCH6dyXVW10izMAkDAQtQxNxdRE22 drpebcak"
]
no
upgrade_drain Drain RKE Nodes bool false no
upgrade_max_unavailable_worker Number or percentage of workers that can be unavailable at the same time string "10%" no
vpc_id VPC ID for this cluster to be created in. string n/a yes
worker_instance_type Instance Types for K8S Worker nodes string "m5a.large" no
worker_node_count Number of Worker nodes to provision number 3 no
worker_tags Map of tags for worker nodes to merge with defaults map(any) {} no
worker_volume_type Volume Type for K8S Worker nodes string "gp3" no

Outputs

Name Description
cluster_id n/a
default_worker_security_group_id n/a
master_tags n/a
registration_command n/a
worker_iam_role n/a
worker_instance_profile n/a
worker_instance_profile_name n/a
worker_security_groups n/a
worker_tags n/a