Skip to content

Commit

Permalink
Merge pull request #8675 from zalando-incubator/dev-to-eks
Browse files Browse the repository at this point in the history
dev to eks
  • Loading branch information
zaklawrencea authored Dec 18, 2024
2 parents 72f9722 + 0f0c9e7 commit 8a7b72d
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cluster/config-defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -740,8 +740,8 @@ tracing_coredns_local_zone_traces_endpoint: ""
# AMI id given the image name and the Image AWS account owner.
#
# [0]: https://github.com/zalando-incubator/cluster-lifecycle-manager/blob/8a9bd1cb2d094038a9e23e646421f8146b48886a/provisioner/template.go#L116
kuberuntu_image_v1_31_jammy_amd64: {{ amiID "zalando-ubuntu-jammy-22.04-kubernetes-production-v1.31.1-amd64-master-357" "861068367966" }}
kuberuntu_image_v1_31_jammy_arm64: {{ amiID "zalando-ubuntu-jammy-22.04-kubernetes-production-v1.31.1-arm64-master-357" "861068367966" }}
kuberuntu_image_v1_31_jammy_amd64: {{ amiID "zalando-ubuntu-jammy-22.04-kubernetes-production-v1.31.4-amd64-master-359" "861068367966" }}
kuberuntu_image_v1_31_jammy_arm64: {{ amiID "zalando-ubuntu-jammy-22.04-kubernetes-production-v1.31.4-arm64-master-359" "861068367966" }}

# Which distro from the previous config items should be used. Valid options are only `jammy` for now. Can be set for each node pool.
kuberuntu_distro_master: "jammy"
Expand Down Expand Up @@ -833,7 +833,7 @@ kubelet_registry_burst: "40"
# - upstream: official Kubernetes version
# - zalando: internal Zalando build with our custom patches
kubernetes_scheduler_image: "zalando"
kubernetes_controller_manager_image: "zalando"
kubernetes_controller_manager_image: "upstream"

# when set to true, service account tokens can be used from outside the cluster
allow_external_service_accounts: "false"
Expand Down
2 changes: 1 addition & 1 deletion cluster/manifests/01-aws-node/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ spec:
type: ""
name: cni-bin-dir
- hostPath:
path: /etc/kubernetes/cni/net.d #/etc/cni/net.d
path: /etc/cni/net.d
type: ""
name: cni-net-dir
- hostPath:
Expand Down
18 changes: 18 additions & 0 deletions cluster/node-pools/master-default/userdata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -928,6 +928,7 @@ write_files:
{{- end}}
{{- end}}

# TODO: Remove this once all nodes are running an AMI compatible with /etc/cni/net.d/10-flannel.conflist
- owner: root:root
path: /etc/kubernetes/cni/net.d/10-flannel.conflist
content: |
Expand All @@ -944,3 +945,20 @@ write_files:
}
]
}
- owner: root:root
path: /etc/cni/net.d/10-flannel.conflist
content: |
{
"name": "podnet",
"cniVersion": "0.3.1",
"plugins": [
{
"type": "flannel",
"delegate": {
"isDefaultGateway": true,
"hairpinMode": true
}
}
]
}
18 changes: 18 additions & 0 deletions cluster/node-pools/worker-splitaz/userdata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ write_files:
{{- end}}

{{- if ne .Cluster.Provider "zalando-eks" }}
# TODO: Remove this once all nodes are running an AMI compatible with /etc/cni/net.d/10-flannel.conflist
- owner: root:root
path: /etc/kubernetes/cni/net.d/10-flannel.conflist
content: |
Expand All @@ -174,4 +175,21 @@ write_files:
}
]
}
- owner: root:root
path: /etc/cni/net.d/10-flannel.conflist
content: |
{
"name": "podnet",
"cniVersion": "0.3.1",
"plugins": [
{
"type": "flannel",
"delegate": {
"isDefaultGateway": true,
"hairpinMode": true
}
}
]
}
{{- end}}

0 comments on commit 8a7b72d

Please sign in to comment.