File tree Expand file tree Collapse file tree 5 files changed +11
-6
lines changed Expand file tree Collapse file tree 5 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,6 @@ 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
-
50
47
# ALB config created by kube-aws-ingress-controller
51
48
kube_aws_ingress_controller_ssl_policy : " ELBSecurityPolicy-TLS-1-2-2017-01"
52
49
kube_aws_ingress_controller_idle_timeout : " 1m"
@@ -1157,8 +1154,14 @@ control_plane_load_balancer_internal: "none"
1157
1154
1158
1155
# Optionally use internal subnets for running the nodes. This can be configured
1159
1156
# a node pool level to only run a subset of nodes in the internal subnets.
1157
+ # If this is true then `associate_public_ip_on_launch` is automatically treated
1158
+ # as false.
1160
1159
internal_node_subnets_enabled : " false"
1161
1160
1161
+ # Configure whether to associate public ip when launching instances.
1162
+ # This is only relevant when `internal_node_subnets_enabled` is false.
1163
+ associate_public_ip_on_launch : " true"
1164
+
1162
1165
# This allows setting custom sysctl settings. The config-item is intended to be
1163
1166
# used on node-pools rather being set globally.
1164
1167
#
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ Resources:
85
85
VolumeType : gp3
86
86
NetworkInterfaces :
87
87
- DeviceIndex : 0
88
- # {{ if eq .NodePool.ConfigItems.associate_public_ip_on_launch "true" }}
88
+ # {{ if and ( eq .NodePool.ConfigItems.associate_public_ip_on_launch "true") (ne .NodePool.ConfigItems.internal_node_subnets_enabled "true") }}
89
89
AssociatePublicIpAddress : true
90
90
# {{ end }}
91
91
Groups :
Original file line number Diff line number Diff line change @@ -154,7 +154,9 @@ Resources:
154
154
VolumeType : gp3
155
155
NetworkInterfaces :
156
156
- DeviceIndex : 0
157
+ # {{ if and (eq .NodePool.ConfigItems.associate_public_ip_on_launch "true") (ne .NodePool.ConfigItems.internal_node_subnets_enabled "true") }}
157
158
AssociatePublicIpAddress : true
159
+ # {{ end }}
158
160
Groups :
159
161
- !ImportValue ' {{ .Cluster.ID }}:worker-security-group'
160
162
EbsOptimized : false
Original file line number Diff line number Diff line change 25
25
securityGroupSelectorTerms :
26
26
- tags :
27
27
karpenter.sh/discovery : " {{ .Cluster.ID }}/WorkerNodeSecurityGroup"
28
- # {{ if eq .NodePool.ConfigItems.associate_public_ip_on_launch "true" }}
28
+ # {{ if and ( eq .NodePool.ConfigItems.associate_public_ip_on_launch "true") (ne .NodePool.ConfigItems.internal_node_subnets_enabled "true") }}
29
29
associatePublicIPAddress : true
30
30
# {{ end }}
31
31
instanceProfile : " {{ .Cluster.ID | awsValidID }}-WorkerKarpenter-InstanceProfile"
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ Resources:
159
159
VolumeType : gp3
160
160
NetworkInterfaces :
161
161
- DeviceIndex : 0
162
- # {{ if eq .NodePool.ConfigItems.associate_public_ip_on_launch "true" }}
162
+ # {{ if and ( eq .NodePool.ConfigItems.associate_public_ip_on_launch "true") (ne .NodePool.ConfigItems.internal_node_subnets_enabled "true") }}
163
163
AssociatePublicIpAddress : true
164
164
# {{ end }}
165
165
Groups :
You can’t perform that action at this time.
0 commit comments