File tree Expand file tree Collapse file tree 5 files changed +26
-6
lines changed Expand file tree Collapse file tree 5 files changed +26
-6
lines changed Original file line number Diff line number Diff line change @@ -1155,6 +1155,10 @@ control_plane_graceful_shutdown: "true"
1155
1155
# For rolling back it needs to be done in multiple stages: active -> serving -> pre -> none
1156
1156
control_plane_load_balancer_internal : " none"
1157
1157
1158
+ # Optionally use internal subnets for running the nodes. This can be configured
1159
+ # a node pool level to only run a subset of nodes in the internal subnets.
1160
+ internal_node_subnets_enabled : " false"
1161
+
1158
1162
# This allows setting custom sysctl settings. The config-item is intended to be
1159
1163
# used on node-pools rather being set globally.
1160
1164
#
Original file line number Diff line number Diff line change @@ -37,9 +37,13 @@ Resources:
37
37
PropagateAtLaunch : true
38
38
Value : " {{ .NodePool.ConfigItems.pod_max_pids }}"
39
39
VPCZoneIdentifier :
40
- {{ with $values := .Values }}
41
- {{ range $az := $values.availability_zones }}
42
- - " {{ index $values.subnets $az }}"
40
+ {{ with $data := . }}
41
+ {{ range $az := $data.Values.availability_zones }}
42
+ # {{ if eq $data.NodePool.ConfigItems.internal_node_subnets_enabled "true" }}
43
+ - " {{ index $data.Values.internal_node_subnets $az }}"
44
+ # {{ else }}
45
+ - " {{ index $data.Values.subnets $az }}"
46
+ # {{ end }}
43
47
{{ end }}
44
48
{{ end }}
45
49
TargetGroupARNs :
Original file line number Diff line number Diff line change @@ -117,9 +117,13 @@ Resources:
117
117
PropagateAtLaunch : true
118
118
Value : " {{ .NodePool.ConfigItems.pod_max_pids }}"
119
119
VPCZoneIdentifier :
120
- {{ with $values := .Values }}
121
- {{ range $az := $values.availability_zones }}
122
- - " {{ index $values.subnets $az }}"
120
+ {{ with $data := . }}
121
+ {{ range $az := $data.Values.availability_zones }}
122
+ # {{ if eq $data.NodePool.ConfigItems.internal_node_subnets_enabled "true" }}
123
+ - " {{ index $data.Values.internal_node_subnets $az }}"
124
+ # {{ else }}
125
+ - " {{ index $data.Values.subnets $az }}"
126
+ # {{ end }}
123
127
{{ end }}
124
128
{{ end }}
125
129
Type : ' AWS::AutoScaling::AutoScalingGroup'
Original file line number Diff line number Diff line change 17
17
httpTokens : optional
18
18
subnetSelectorTerms :
19
19
- tags :
20
+ # {{ if eq .NodePool.ConfigItems.internal_node_subnets_enabled "true" }}
21
+ kubernetes.io/role/internal-node : " enabled"
22
+ # {{ else }}
20
23
kubernetes.io/role/karpenter : " enabled"
24
+ # {{ end }}
21
25
securityGroupSelectorTerms :
22
26
- tags :
23
27
karpenter.sh/discovery : " {{ .Cluster.ID }}/WorkerNodeSecurityGroup"
Original file line number Diff line number Diff line change @@ -123,7 +123,11 @@ Resources:
123
123
PropagateAtLaunch : true
124
124
Value : " {{ $data.NodePool.ConfigItems.pod_max_pids }}"
125
125
VPCZoneIdentifier :
126
+ # {{ if eq $data.NodePool.ConfigItems.internal_node_subnets_enabled "true" }}
127
+ - " {{ index $data.Values.internal_node_subnets $az }}"
128
+ # {{ else }}
126
129
- " {{ index $data.Values.subnets $az }}"
130
+ # {{ end }}
127
131
Type : ' AWS::AutoScaling::AutoScalingGroup'
128
132
{{ end }}
129
133
{{ end }}
You can’t perform that action at this time.
0 commit comments