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
Allow additional security groups to be included in worker launch configurations (#112)
* Allow additional security groups to be included for all workers and each worker group #47
* update changelog with reference to issue and be more descriptive
* Update CHANGELOG.md
* address pr comments and rebase
* rebase
* fix bug introduced by PR#115 that sets the AMI id to the default value of "" always
* rebase
* align default value of additional_security_group_ids to be pulled from local var workers_group_defaults_defaults
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,9 @@ project adheres to [Semantic Versioning](http://semver.org/).
10
10
### Added
11
11
12
12
- add support for [`amazon-eks-node-*` AMI with bootstrap script](https://aws.amazon.com/blogs/opensource/improvements-eks-worker-node-provisioning/) (by @erks)
13
-
- expose `kubelet_extra_args` worker group option (replacing `kubelet_node_labels`) to allow specifying arbitrary kubelet options (e.g. taints and labels) (by @erks)
13
+
- expose `kubelet_extra_args` worker group option (replacing `kubelet_node_labels`) to allow specifying arbitrary kubelet options (e.g. taints and labels) (by @erks)
14
+
- add optional input `worker_additional_security_group_ids` to allow one or more additional security groups to be added to all worker launch configurations - #47 (by @hhobbsh@mr-joshua)
15
+
- add optional input `additional_security_group_ids` to allow one or more additional security groups to be added to a specific worker launch configuration - #47 (by @mr-joshua)
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,6 +114,7 @@ MIT Licensed. See [LICENSE](https://github.com/terraform-aws-modules/terraform-a
114
114
| subnets | A list of subnets to place the EKS cluster and workers within. | list | - | yes |
115
115
| tags | A map of tags to add to all resources. | map | `<map>` | no |
116
116
| vpc_id | VPC where the cluster and workers will be deployed. | string | - | yes |
117
+
| worker_additional_security_group_ids | A list of additional security group ids to attach to worker instances | list | `<list>` | no |
117
118
| worker_group_count | The number of maps contained within the worker_groups list. | string | `1` | no |
118
119
| worker_groups | A list of maps defining worker group configurations. See workers_group_defaults for valid keys. | list | `<list>` | no |
119
120
| 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 |
name ="count.index"# Name of the worker group. Literal count.index will never be used but if name is not set, the count.index interpolation will be used.
13
-
ami_id ="${data.aws_ami.eks_worker.id}"# AMI ID for the eks workers. If none is provided, Terraform will search for the latest version of their EKS optimized worker AMI.
14
-
asg_desired_capacity ="1"# Desired worker capacity in the autoscaling group.
15
-
asg_max_size ="3"# Maximum worker capacity in the autoscaling group.
16
-
asg_min_size ="1"# Minimum worker capacity in the autoscaling group.
17
-
instance_type ="m4.large"# Size of the workers instances.
18
-
spot_price =""# Cost of spot instance.
19
-
root_volume_size ="100"# root volume size of workers instances.
20
-
root_volume_type ="gp2"# root volume type of workers instances, can be 'standard', 'gp2', or 'io1'
21
-
root_iops ="0"# The amount of provisioned IOPS. This must be set with a volume_type of "io1".
22
-
key_name =""# The key name that should be used for the instances in the autoscaling group
23
-
pre_userdata =""# userdata to pre-append to the default userdata.
24
-
additional_userdata =""# userdata to append to the default userdata.
25
-
ebs_optimized =true# sets whether to use ebs optimization on supported types.
public_ip =false# Associate a public ip address with a worker
28
-
kubelet_extra_args =""# This string is passed directly to kubelet if set. Useful for adding labels or taints.
29
-
subnets =""# A comma delimited string of subnets to place the worker nodes in. i.e. subnet-123,subnet-456,subnet-789
30
-
autoscaling_enabled =false# Sets whether policy and matching tags will be added to allow autoscaling.
12
+
name ="count.index"# Name of the worker group. Literal count.index will never be used but if name is not set, the count.index interpolation will be used.
13
+
ami_id ="${data.aws_ami.eks_worker.id}"# AMI ID for the eks workers. If none is provided, Terraform will search for the latest version of their EKS optimized worker AMI.
14
+
asg_desired_capacity ="1"# Desired worker capacity in the autoscaling group.
15
+
asg_max_size ="3"# Maximum worker capacity in the autoscaling group.
16
+
asg_min_size ="1"# Minimum worker capacity in the autoscaling group.
17
+
instance_type ="m4.large"# Size of the workers instances.
18
+
spot_price =""# Cost of spot instance.
19
+
root_volume_size ="100"# root volume size of workers instances.
20
+
root_volume_type ="gp2"# root volume type of workers instances, can be 'standard', 'gp2', or 'io1'
21
+
root_iops ="0"# The amount of provisioned IOPS. This must be set with a volume_type of "io1".
22
+
key_name =""# The key name that should be used for the instances in the autoscaling group
23
+
pre_userdata =""# userdata to pre-append to the default userdata.
24
+
additional_userdata =""# userdata to append to the default userdata.
25
+
ebs_optimized =true# sets whether to use ebs optimization on supported types.
description="A list of additional security group ids to attach to worker instances"
96
+
type="list"
97
+
default=[]
98
+
}
99
+
94
100
variable"worker_sg_ingress_from_port" {
95
101
description="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)."
0 commit comments