Skip to content

Commit

Permalink
Update to Kubernetes v1.32
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 Jan 6, 2025
1 parent 60a480c commit 65bf6b1
Show file tree
Hide file tree
Showing 11 changed files with 289 additions and 347 deletions.
2 changes: 2 additions & 0 deletions cluster/config-defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,8 @@ tracing_coredns_local_zone_traces_endpoint: ""
# [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.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" }}
kuberuntu_image_v1_32_jammy_amd64: {{ amiID "zalando-ubuntu-jammy-22.04-kubernetes-production-v1.32.0-amd64-master-360" "861068367966" }}
kuberuntu_image_v1_32_jammy_arm64: {{ amiID "zalando-ubuntu-jammy-22.04-kubernetes-production-v1.32.0-arm64-master-360" "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
2 changes: 1 addition & 1 deletion cluster/node-pools/master-default/stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Mappings:
Images:
{{.Cluster.Region}}:
# Use the node pool's architecture to construct the config item name that we're using to get the AMI name.
MachineImage: '{{ index .NodePool.ConfigItems (print "kuberuntu_image_v1_31_" .NodePool.ConfigItems.kuberuntu_distro_master "_" .Values.InstanceInfo.Architecture) }}'
MachineImage: '{{ index .NodePool.ConfigItems (print "kuberuntu_image_v1_32_" .NodePool.ConfigItems.kuberuntu_distro_master "_" .Values.InstanceInfo.Architecture) }}'

Resources:
AutoScalingGroup:
Expand Down
18 changes: 0 additions & 18 deletions cluster/node-pools/master-default/userdata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -928,24 +928,6 @@ 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: |
{
"name": "podnet",
"cniVersion": "0.3.1",
"plugins": [
{
"type": "flannel",
"delegate": {
"isDefaultGateway": true,
"hairpinMode": true
}
}
]
}
- owner: root:root
path: /etc/cni/net.d/10-flannel.conflist
content: |
Expand Down
2 changes: 1 addition & 1 deletion cluster/node-pools/worker-combined/stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Mappings:
Images:
{{.Cluster.Region}}:
# Use the node pool's architecture to construct the config item name that we're using to get the AMI name.
MachineImage: '{{ index .NodePool.ConfigItems (print "kuberuntu_image_v1_31_" .NodePool.ConfigItems.kuberuntu_distro_worker "_" .Values.InstanceInfo.Architecture) }}'
MachineImage: '{{ index .NodePool.ConfigItems (print "kuberuntu_image_v1_32_" .NodePool.ConfigItems.kuberuntu_distro_worker "_" .Values.InstanceInfo.Architecture) }}'

Resources:
AutoScalingGroup:
Expand Down
4 changes: 2 additions & 2 deletions cluster/node-pools/worker-karpenter/provisioners.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ spec:
amiFamily: Custom
amiSelectorTerms:
# Select on any AMI that has any of the following IDs
- id: {{ index .NodePool.ConfigItems (print "kuberuntu_image_v1_31_" .NodePool.ConfigItems.kuberuntu_distro_worker "_amd64") }}
- id: {{ index .NodePool.ConfigItems (print "kuberuntu_image_v1_31_" .NodePool.ConfigItems.kuberuntu_distro_worker "_arm64") }}
- id: {{ index .NodePool.ConfigItems (print "kuberuntu_image_v1_32_" .NodePool.ConfigItems.kuberuntu_distro_worker "_amd64") }}
- id: {{ index .NodePool.ConfigItems (print "kuberuntu_image_v1_32_" .NodePool.ConfigItems.kuberuntu_distro_worker "_arm64") }}
metadataOptions:
httpEndpoint: enabled
httpProtocolIPv6: disabled
Expand Down
2 changes: 1 addition & 1 deletion cluster/node-pools/worker-splitaz/stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Mappings:
Images:
{{.Cluster.Region}}:
# Use the node pool's architecture to construct the config item name that we're using to get the AMI name.
MachineImage: '{{ index .NodePool.ConfigItems (print "kuberuntu_image_v1_31_" .NodePool.ConfigItems.kuberuntu_distro_worker "_" .Values.InstanceInfo.Architecture) }}'
MachineImage: '{{ index .NodePool.ConfigItems (print "kuberuntu_image_v1_32_" .NodePool.ConfigItems.kuberuntu_distro_worker "_" .Values.InstanceInfo.Architecture) }}'

Resources:
{{ with $data := . }}
Expand Down
18 changes: 0 additions & 18 deletions cluster/node-pools/worker-splitaz/userdata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,24 +136,6 @@ 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: |
{
"name": "podnet",
"cniVersion": "0.3.1",
"plugins": [
{
"type": "flannel",
"delegate": {
"isDefaultGateway": true,
"hairpinMode": true
}
}
]
}
- owner: root:root
path: /etc/cni/net.d/10-flannel.conflist
content: |
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# builder image
FROM golang:1.23 AS builder

RUN CGO_ENABLED=0 go install github.com/onsi/ginkgo/v2/ginkgo@v2.19.0
RUN CGO_ENABLED=0 go install github.com/onsi/ginkgo/v2/ginkgo@v2.21.0

# final image
# TODO get rid of python dependencies
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

BINARY ?= kubernetes-on-aws-e2e
VERSION ?= $(shell git describe --tags --always --dirty)
KUBE_VERSION ?= v1.31.4
KUBE_VERSION ?= v1.32.0
IMAGE ?= pierone.stups.zalan.do/teapot/$(BINARY)
SOURCES = $(shell find . -name '*.go')
TAG ?= $(VERSION)
Expand Down
Loading

0 comments on commit 65bf6b1

Please sign in to comment.