File tree Expand file tree Collapse file tree 4 files changed +9
-0
lines changed Expand file tree Collapse file tree 4 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,9 @@ karpenter_max_pods_per_node: "32"
44
44
# legacy => 0.36.2-main-25.patched
45
45
karpenter_version : " current"
46
46
47
+ # Configure whether to associate public ip when launching instances.
48
+ associate_public_ip_on_launch : " true"
49
+
47
50
# ALB config created by kube-aws-ingress-controller
48
51
kube_aws_ingress_controller_ssl_policy : " ELBSecurityPolicy-TLS-1-2-2017-01"
49
52
kube_aws_ingress_controller_idle_timeout : " 1m"
Original file line number Diff line number Diff line change @@ -81,7 +81,9 @@ Resources:
81
81
VolumeType : gp3
82
82
NetworkInterfaces :
83
83
- DeviceIndex : 0
84
+ # {{ if eq .Cluster.ConfigItems.associate_public_ip_on_launch "true" }}
84
85
AssociatePublicIpAddress : true
86
+ # {{ end }}
85
87
Groups :
86
88
- !ImportValue ' {{ .Cluster.ID }}:master-security-group'
87
89
EbsOptimized : false
Original file line number Diff line number Diff line change 21
21
securityGroupSelectorTerms :
22
22
- tags :
23
23
karpenter.sh/discovery : " {{ .Cluster.ID }}/WorkerNodeSecurityGroup"
24
+ # {{ if eq .Cluster.ConfigItems.associate_public_ip_on_launch "true" }}
24
25
associatePublicIPAddress : true
26
+ # {{ end }}
25
27
instanceProfile : " {{ .Cluster.ID | awsValidID }}-WorkerKarpenter-InstanceProfile"
26
28
blockDeviceMappings :
27
29
- deviceName : /dev/sda1
Original file line number Diff line number Diff line change @@ -155,7 +155,9 @@ Resources:
155
155
VolumeType : gp3
156
156
NetworkInterfaces :
157
157
- DeviceIndex : 0
158
+ # {{ if eq .Cluster.ConfigItems.associate_public_ip_on_launch "true" }}
158
159
AssociatePublicIpAddress : true
160
+ # {{ end }}
159
161
Groups :
160
162
- !ImportValue ' {{ .Cluster.ID }}:worker-security-group'
161
163
EbsOptimized : false
You can’t perform that action at this time.
0 commit comments