File tree Expand file tree Collapse file tree 4 files changed +41
-1
lines changed Expand file tree Collapse file tree 4 files changed +41
-1
lines changed Original file line number Diff line number Diff line change @@ -1272,6 +1272,10 @@ eks_fis_namespaces: "default"
1272
1272
1273
1273
# prefix delegation can only be configured for ipv4. For ipv6 it can only be true.
1274
1274
aws_vpc_cni_prefix_delegation : " false"
1275
+ # enable custom networking for the AWS VPC CNI. This assumes that a custom CIDR
1276
+ # range is available in the VPC and that there are dedicated subnets for the
1277
+ # custom CIDR.
1278
+ aws_vpc_cni_custom_networking : " false"
1275
1279
# enable network policy enforcement in the cluster.
1276
1280
aws_vpc_cni_enable_network_policy : " false"
1277
1281
# specify the network policy enforcement mode.
Original file line number Diff line number Diff line change 55
55
- name : AWS_VPC_ENI_MTU
56
56
value : " 9001"
57
57
- name : AWS_VPC_K8S_CNI_CUSTOM_NETWORK_CFG
58
- value : " false"
58
+ value : " {{ .Cluster.ConfigItems.aws_vpc_cni_custom_networking }}"
59
+ # {{ if eq .Cluster.ConfigItems.aws_vpc_cni_custom_networking "true" }}
60
+ - name : ENI_CONFIG_LABEL_DEF
61
+ value : topology.kubernetes.io/zone
62
+ # {{ end }}
59
63
- name : AWS_VPC_K8S_CNI_EXTERNALSNAT
60
64
value : " false"
61
65
- name : AWS_VPC_K8S_CNI_LOGLEVEL
Original file line number Diff line number Diff line change
1
+ # {{ if eq .Cluster.Provider "zalando-eks" }}
2
+ # {{ if eq .Cluster.ConfigItems.aws_vpc_cni_custom_networking "true" }}
3
+ # {{ with $data := . }}
4
+ # {{ with $azCount := len $data.Values.availability_zones }}
5
+ # {{ range $az := $data.Values.availability_zones }}
6
+ # {{ with $azID := azID $az }}
7
+ ---
8
+ apiVersion : crd.k8s.amazonaws.com/v1alpha1
9
+ kind : ENIConfig
10
+ metadata :
11
+ name : " {{$az}}"
12
+ labels :
13
+ application : kubernetes
14
+ component : aws-node
15
+ spec :
16
+ securityGroups :
17
+ - {{ $data.Values.ClusterStackOutputs.EKSWorkerSecurityGroup }}
18
+ subnet : " {{ index $data.Values.pod_subnets $az }}"
19
+ # {{end}}
20
+ # {{end}}
21
+ # {{end}}
22
+ # {{end}}
23
+ # {{end}}
24
+ # {{end}}
Original file line number Diff line number Diff line change @@ -415,6 +415,14 @@ post_apply:
415
415
kind : ServiceAccount
416
416
namespace : kube-system
417
417
{{- end}}
418
+ {{- if eq .Cluster.Provider "zalando-eks"}}
419
+ {{- if ne .Cluster.ConfigItems.aws_vpc_cni_custom_networking "true"}}
420
+ - kind : ENIConfig
421
+ labels :
422
+ application : kubernetes
423
+ component : aws-node
424
+ {{- end }}
425
+ {{- end }}
418
426
{{- if ne .Cluster.ConfigItems.emergency_access_service_enabled "true" }}
419
427
- name : emergency-access-service
420
428
kind : Deployment
You can’t perform that action at this time.
0 commit comments