You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- New variables `map_accounts`, `map_roles` and `map_users` in order to manage additional entries in the `aws-auth` configmap. (by @max-rocket-internet)
12
23
- kubelet_node_labels worker group option allows setting --node-labels= in kubelet. (Hat-tip, @bshelton229 👒)
24
+
-`worker_iam_role_arn` added to outputs. Sweet, @hatemosphere 🔥
13
25
14
26
### Changed
15
27
16
-
-your excellent change. (Boomshakalaka, @self 🏀)
28
+
-Worker subnets able to be specified as a dedicated list per autoscaling group. (up top, @bshelton229 🙏)
Copy file name to clipboardExpand all lines: README.md
+15-10Lines changed: 15 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ Read the [AWS docs on EKS to get connected to the k8s dashboard](https://docs.aw
15
15
* You want to create an EKS cluster and an autoscaling group of workers for the cluster.
16
16
* You want these resources to exist within security groups that allow communication and coordination. These can be user provided or created within the module.
17
17
* You've created a Virtual Private Cloud (VPC) and subnets where you intend to put the EKS resources.
18
-
* If using the default variable value (`true`) for `configure_kubectl_session`, it's required that both [`kubectl`](https://kubernetes.io/docs/tasks/tools/install-kubectl/#install-kubectl) (>=1.10) and [`heptio-authenticator-aws`](https://github.com/heptio/authenticator#4-set-up-kubectl-to-use-heptio-authenticator-for-aws-tokens) are installed and on your shell's PATH.
18
+
* If using the default variable value (`true`) for `configure_kubectl_session`, it's required that both [`kubectl`](https://kubernetes.io/docs/tasks/tools/install-kubectl/#install-kubectl) (>=1.10) and [`aws-iam-authenticator`](https://github.com/kubernetes-sigs/aws-iam-authenticator#4-set-up-kubectl-to-use-authentication-tokens-provided-by-aws-iam-authenticator-for-kubernetes) are installed and on your shell's PATH.
@@ -98,23 +98,27 @@ MIT Licensed. See [LICENSE](https://github.com/terraform-aws-modules/terraform-a
98
98
| cluster_name | Name of the EKS cluster. Also used as a prefix in names of related resources. | string | - | yes |
99
99
| cluster_security_group_id | If provided, the EKS cluster will be attached to this security group. If not given, a security group will be created with necessary ingres/egress to work with the workers and provide API access to your current IP/32. | string | `` | no |
100
100
| cluster_version | Kubernetes version to use for the EKS cluster. | string | `1.10` | no |
101
-
| config_output_path | Determines where config files are placed if using configure_kubectl_session and you want config files to land outside the current working directory. | string | `./` | no |
102
-
| configure_kubectl_session | Configure the current session's kubectl to use the instantiated EKS cluster. | string |`true`| no |
103
-
| kubeconfig_aws_authenticator_additional_args | Any additional arguments to pass to the authenticator such as the role to assume ["-r", "MyEksRole"] | string |`<list>`| no |
104
-
| kubeconfig_aws_authenticator_command | Command to use to to fetch AWS EKS credentials | string |`heptio-authenticator-aws`| no |
105
-
| kubeconfig_aws_authenticator_env_variables | Environment variables that should be used when executing the authenticator i.e. { AWS_PROFILE = "eks"} | string |`<map>`| no |
106
-
| kubeconfig_name | Override the default name used for items kubeconfig | string |``| no |
107
-
| root_iops | The amount of provisioned IOPS. This must be set with a volume_type of 'io1'. | string |``| no |
101
+
| config_output_path | Determines where config files are placed if using configure_kubectl_session and you want config files to land outside the current working directory. Should end in a forward slash / . | string | `./` | no |
102
+
| kubeconfig_aws_authenticator_additional_args | Any additional arguments to pass to the authenticator such as the role to assume. e.g. ["-r", "MyEksRole"]. | list | `<list>` | no |
103
+
| kubeconfig_aws_authenticator_command | Command to use to to fetch AWS EKS credentials. | string | `aws-iam-authenticator` | no |
104
+
| kubeconfig_aws_authenticator_env_variables | Environment variables that should be used when executing the authenticator. e.g. { AWS_PROFILE = "eks"}. | map | `<map>` | no |
105
+
| kubeconfig_name | Override the default name used for items kubeconfig. | string | `` | no |
106
+
| manage_aws_auth | Whether to write and apply the aws-auth configmap file. | string | `true` | no |
107
+
| map_accounts | Additional AWS account numbers to add to the aws-auth configmap. See examples/eks_test_fixture/variables.tf for example format. | list | `<list>` | no |
108
+
| map_roles | Additional IAM roles to add to the aws-auth configmap. See examples/eks_test_fixture/variables.tf for example format. | list | `<list>` | no |
109
+
| map_users | Additional IAM users to add to the aws-auth configmap. See examples/eks_test_fixture/variables.tf for example format. | list | `<list>` | no |
110
+
| root_iops | The amount of provisioned IOPS. This must be set with a volume_type of 'io1'. | string | `0` | no |
108
111
| root_volume_size | The root size of the volume in gigabytes. | string | `20` | no |
109
112
| root_volume_type | The type of root volume. Can be 'standard', 'gp2', or 'io1' | string | `gp2` | no |
110
113
| subnets | A list of subnets to place the EKS cluster and workers within. | list | - | yes |
111
-
| tags | A map of tags to add to all resources. |string|`<map>`| no |
114
+
| tags | A map of tags to add to all resources. | map | `<map>` | no |
112
115
| vpc_id | VPC where the cluster and workers will be deployed. | string | - | yes |
113
116
| worker_groups | A list of maps defining worker group configurations. See workers_group_defaults for valid keys. | list | `<list>` | no |
114
117
| worker_security_group_id | If provided, all workers will be attached to this security group. If not given, a security group will be created with necessary ingres/egress to work with the EKS cluster. | string | `` | no |
115
118
| worker_sg_ingress_from_port | Minimum port number from which pods will accept communication. Must be changed to a lower value if some pods in your cluster will expose a port lower than 1025 (e.g. 22, 80, or 443). | string | `1025` | no |
116
119
| workers_group_defaults | Default values for target groups as defined by the list of maps. | map | `<map>` | no |
117
120
| workstation_cidr | Override the default ingress rule that allows communication with the EKS cluster API. If not given, will use current IP/32. | string | `` | no |
121
+
| write_kubeconfig | Whether to write a kubeconfig file containing the cluster configuration. | string | `true` | no |
118
122
119
123
## Outputs
120
124
@@ -127,6 +131,7 @@ MIT Licensed. See [LICENSE](https://github.com/terraform-aws-modules/terraform-a
127
131
| cluster_version | The Kubernetes server version for the EKS cluster. |
128
132
| config_map_aws_auth | A kubernetes configuration to authenticate to this EKS cluster. |
129
133
| kubeconfig | kubectl config file contents for this EKS cluster. |
134
+
| worker_iam_role_arn | IAM role ID attached to EKS workers |
130
135
| worker_iam_role_name | IAM role name attached to EKS workers |
131
136
| worker_security_group_id | Security group ID attached to the EKS workers. |
132
137
| workers_asg_arns | IDs of the autoscaling groups containing workers. |
Copy file name to clipboardExpand all lines: main.tf
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@
16
16
** You want to create an EKS cluster and an autoscaling group of workers for the cluster.
17
17
** You want these resources to exist within security groups that allow communication and coordination. These can be user provided or created within the module.
18
18
** You've created a Virtual Private Cloud (VPC) and subnets where you intend to put the EKS resources.
19
-
** If using the default variable value (`true`) for `configure_kubectl_session`, it's required that both [`kubectl`](https://kubernetes.io/docs/tasks/tools/install-kubectl/#install-kubectl) (>=1.10) and [`heptio-authenticator-aws`](https://github.com/heptio/authenticator#4-set-up-kubectl-to-use-heptio-authenticator-for-aws-tokens) are installed and on your shell's PATH.
19
+
** If using the default variable value (`true`) for `configure_kubectl_session`, it's required that both [`kubectl`](https://kubernetes.io/docs/tasks/tools/install-kubectl/#install-kubectl) (>=1.10) and [`aws-iam-authenticator`](https://github.com/kubernetes-sigs/aws-iam-authenticator#4-set-up-kubectl-to-use-authentication-tokens-provided-by-aws-iam-authenticator-for-kubernetes) are installed and on your shell's PATH.
0 commit comments