Skip to content

Commit

Permalink
Custom networking
Browse files Browse the repository at this point in the history
Signed-off-by: Mikkel Oscar Lyderik Larsen <[email protected]>
  • Loading branch information
mikkeloscar committed Nov 19, 2024
1 parent 41304ca commit 87bebf9
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
5 changes: 5 additions & 0 deletions cluster/config-defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1199,6 +1199,11 @@ role_sync_controller_enabled: "false"
eks: "false"
eks_control_plane_logging: "false"
eks_ip_family: "ipv4"

# prefix delegation can only be configured for ipv4. For ipv6 it can only be
# true.
aws_vpc_cni_prefix_delegation: "true"
aws_vpc_cni_custom_networking: "false"
eks_zalando_iam_aws_proxy_cpu: "100m"
eks_zalando_iam_aws_proxy_memory: "512Mi"
eks_zalando_iam_aws_proxy_hpa_max_replicas: "10"
Expand Down
6 changes: 5 additions & 1 deletion cluster/manifests/01-aws-node/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ spec:
- name: AWS_VPC_ENI_MTU
value: "9001"
- name: AWS_VPC_K8S_CNI_CUSTOM_NETWORK_CFG
value: "false"
value: "{{ .Cluster.ConfigItems.aws_vpc_cni_custom_networking }}"
# {{ if eq .Cluster.ConfigItems.aws_vpc_cni_custom_networking "true" }}
- name: ENI_CONFIG_LABEL_DEF
value: topology.kubernetes.io/zone
# {{ end }}
- name: AWS_VPC_K8S_CNI_EXTERNALSNAT
value: "false"
- name: AWS_VPC_K8S_CNI_LOGLEVEL
Expand Down
19 changes: 19 additions & 0 deletions cluster/manifests/01-aws-node/pod_subnets.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# {{ if eq .Cluster.ConfigItems.aws_vpc_cni_custom_networking "true" }}
# {{ with $data := . }}
# {{ with $azCount := len $data.Values.availability_zones }}
# {{ range $az := $data.Values.availability_zones }}
# {{ with $azID := azID $az }}
---
apiVersion : crd.k8s.amazonaws.com/v1alpha1
kind : ENIConfig
metadata:
name: "{{$az}}"
spec:
securityGroups:
- {{ $data.Values.ClusterStackOutputs.EKSWorkerSecurityGroup }}
subnet: "{{ index $data.Values.pod_subnets $az }}"
# {{end}}
# {{end}}
# {{end}}
# {{end}}
# {{end}}

0 comments on commit 87bebf9

Please sign in to comment.