Skip to content

Commit fb3c449

Browse files
authored
Merge pull request #6065 from zalando-incubator/kube-1.25
Update to Kubernetes v1.25
2 parents 5c077e3 + 67594ed commit fb3c449

29 files changed

+347
-431
lines changed

cluster/config-defaults.yaml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -455,9 +455,6 @@ horizontal_pod_downscale_stabilization: "5m0s"
455455
autoscaling_v2beta1_enabled: "false"
456456
autoscaling_v2beta2_enabled: "false"
457457

458-
# enable/disable legacy api versions prior to v1.25
459-
batch_v1beta1_enabled: "false"
460-
461458
# Vertical pod autoscaler version for controlling roll-out, can be "current" or "legacy"
462459
# current => v0.11.0-internal.17
463460
# legacy => v0.6.1-internal.16
@@ -628,9 +625,6 @@ teapot_admission_controller_pod_security_policy_privileged_service_accounts: ""
628625
{{ end }}
629626
teapot_admission_controller_pod_security_policy_privileged_allow_privilege_escalation: "false"
630627

631-
# Optionally disable PodSecurityPolicy. Make sure `teapot_admission_controller_pod_security_policy_enabled` is true if this is disabled, otherwise there are no Pod security Policy enforcement in the cluster.
632-
pod_security_policy_enabled: "false"
633-
634628
# Prevent the use of a particular AZ as much as possible
635629
blocked_availability_zone: ""
636630

@@ -673,6 +667,10 @@ kuberuntu_image_v1_24_focal_amd64: {{ amiID "zalando-ubuntu-focal-20.04-kubernet
673667
kuberuntu_image_v1_24_focal_arm64: {{ amiID "zalando-ubuntu-focal-20.04-kubernetes-production-v1.24.17-arm64-master-283" "861068367966" }}
674668
kuberuntu_image_v1_24_jammy_amd64: {{ amiID "zalando-ubuntu-jammy-22.04-kubernetes-production-v1.24.17-amd64-master-297" "861068367966" }}
675669
kuberuntu_image_v1_24_jammy_arm64: {{ amiID "zalando-ubuntu-jammy-22.04-kubernetes-production-v1.24.17-arm64-master-297" "861068367966" }}
670+
kuberuntu_image_v1_25_focal_amd64: {{ amiID "zalando-ubuntu-focal-20.04-kubernetes-production-v1.25.16-amd64-master-305" "861068367966" }}
671+
kuberuntu_image_v1_25_focal_arm64: {{ amiID "zalando-ubuntu-focal-20.04-kubernetes-production-v1.25.16-arm64-master-305" "861068367966" }}
672+
kuberuntu_image_v1_25_jammy_amd64: {{ amiID "zalando-ubuntu-jammy-22.04-kubernetes-production-v1.25.16-amd64-master-305" "861068367966" }}
673+
kuberuntu_image_v1_25_jammy_arm64: {{ amiID "zalando-ubuntu-jammy-22.04-kubernetes-production-v1.25.16-arm64-master-305" "861068367966" }}
676674

677675
# Which distro from the previous config items should be used. Valid options are `focal` and `jammy`. Can be set for each node pool.
678676
{{if eq .Cluster.Environment "test"}}
@@ -837,10 +835,6 @@ enable_hpa_scale_to_zero: "true"
837835
# Enable FeatureGate HPAContainerMetrics
838836
enable_hpa_container_metrics: "true"
839837

840-
# Enable FeatureGate EphemeralContainers (Alpha)
841-
# https://kubernetes.io/docs/tasks/debug-application-cluster/debug-running-pod/
842-
enable_ephemeral_containers: "false"
843-
844838
# Enable FeatureGate MaxUnavailableStatefulSet
845839
max_unavailable_statefulset_enabled: "false"
846840

cluster/manifests/deletions.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -293,12 +293,6 @@ post_apply:
293293
kind: HorizontalPodAutoscaler
294294
namespace: kube-system
295295
{{ end }}
296-
{{- if ne .Cluster.ConfigItems.pod_security_policy_enabled "true" }}
297-
- kind: PodSecurityPolicy
298-
name: privileged
299-
- kind: PodSecurityPolicy
300-
name: restricted
301-
{{- end }}
302296
{{- if eq .Cluster.ConfigItems.audittrail_nakadi_url "" }}
303297
- name: audittrail-adapter-nakadi
304298
kind: PlatformCredentialsSet

cluster/manifests/psp/pod_security_policy.yaml

Lines changed: 0 additions & 91 deletions
This file was deleted.

cluster/node-pools/master-default/stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Mappings:
1010
Images:
1111
eu-central-1:
1212
# Use the node pool's architecture to construct the config item name that we're using to get the AMI name.
13-
MachineImage: '{{ index .NodePool.ConfigItems (print "kuberuntu_image_v1_24_" .NodePool.ConfigItems.kuberuntu_distro_master "_" .Values.InstanceInfo.Architecture) }}'
13+
MachineImage: '{{ index .NodePool.ConfigItems (print "kuberuntu_image_v1_25_" .NodePool.ConfigItems.kuberuntu_distro_master "_" .Values.InstanceInfo.Architecture) }}'
1414

1515
Resources:
1616
AutoScalingGroup:

cluster/node-pools/master-default/userdata.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ write_files:
3030
{{- end }}
3131
featureGates:
3232
SizeMemoryBackedVolumes: {{ .Cluster.ConfigItems.enable_size_memory_backed_volumes }}
33-
{{- if eq .Cluster.ConfigItems.enable_ephemeral_containers "true" }}
34-
EphemeralContainers: true
35-
{{- end }}
3633
podPidsLimit: {{ .NodePool.ConfigItems.pod_max_pids }}
3734
maxPods: {{ nodeCIDRMaxPods (parseInt64 .Cluster.ConfigItems.node_cidr_mask_size) 8 }}
3835
{{- if ne .Cluster.ConfigItems.serialize_image_pulls "true" }}
@@ -120,14 +117,14 @@ write_files:
120117
- --allow-privileged=true
121118
- --service-cluster-ip-range=10.5.0.0/16
122119
- --secure-port=443
123-
- --enable-admission-plugins=NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,DefaultTolerationSeconds,ExtendedResourceToleration,MutatingAdmissionWebhook,ValidatingAdmissionWebhook,ResourceQuota,StorageObjectInUseProtection,{{ if eq .Cluster.ConfigItems.pod_security_policy_enabled "true" }}PodSecurityPolicy,{{end}}Priority,NodeRestriction{{if eq .Cluster.ConfigItems.event_rate_limit_enable "true"}},EventRateLimit{{end}}
120+
- --enable-admission-plugins=NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,DefaultTolerationSeconds,ExtendedResourceToleration,MutatingAdmissionWebhook,ValidatingAdmissionWebhook,ResourceQuota,StorageObjectInUseProtection,Priority,NodeRestriction{{if eq .Cluster.ConfigItems.event_rate_limit_enable "true"}},EventRateLimit{{end}}
124121
{{- if eq .Cluster.ConfigItems.event_rate_limit_enable "true"}}
125122
# This file specifies the EventRateLimit admission plugin's configuration
126123
- --admission-control-config-file=/etc/kubernetes/config/admission-config.yaml
127124
{{- end }}
128125
- --tls-cert-file=/etc/kubernetes/ssl/apiserver.pem
129126
- --tls-private-key-file=/etc/kubernetes/ssl/apiserver-key.pem
130-
- --runtime-config={{ if eq .Cluster.ConfigItems.pod_security_policy_enabled "true" }}policy/v1beta1=true,{{end}}authorization.k8s.io/v1beta1=true,scheduling.k8s.io/v1alpha1=true,admissionregistration.k8s.io/v1beta1=true,autoscaling/v2beta2={{ .Cluster.ConfigItems.autoscaling_v2beta2_enabled }},autoscaling/v2beta1={{ .Cluster.ConfigItems.autoscaling_v2beta1_enabled }},batch/v1beta1={{ .Cluster.ConfigItems.batch_v1beta1_enabled }}
127+
- --runtime-config=authorization.k8s.io/v1beta1=true,scheduling.k8s.io/v1alpha1=true,admissionregistration.k8s.io/v1beta1=true,autoscaling/v2beta2={{ .Cluster.ConfigItems.autoscaling_v2beta2_enabled }},autoscaling/v2beta1={{ .Cluster.ConfigItems.autoscaling_v2beta1_enabled }}
131128
- --authentication-token-webhook-config-file=/etc/kubernetes/config/authn.yaml
132129
- --authentication-token-webhook-cache-ttl=10s
133130
- --cloud-provider=aws
@@ -143,7 +140,7 @@ write_files:
143140
- --oidc-groups-claim=groups
144141
- "--oidc-groups-prefix=okta:"
145142
{{- end }}
146-
- --feature-gates=HPAScaleToZero={{ .Cluster.ConfigItems.enable_hpa_scale_to_zero }},EphemeralContainers={{ .Cluster.ConfigItems.enable_ephemeral_containers }},HPAContainerMetrics={{ .Cluster.ConfigItems.enable_hpa_container_metrics }},StatefulSetAutoDeletePVC={{ .Cluster.ConfigItems.enable_statefulset_autodelete_pvc }},TopologyAwareHints={{ .Cluster.ConfigItems.enable_topology_aware_hints }},MinDomainsInPodTopologySpread={{ .Cluster.ConfigItems.min_domains_in_pod_topology_spread_enabled }},CronJobTimeZone={{.Cluster.ConfigItems.cronjob_time_zone_enabled}},MaxUnavailableStatefulSet={{.Cluster.ConfigItems.max_unavailable_statefulset_enabled}}
143+
- --feature-gates=HPAScaleToZero={{ .Cluster.ConfigItems.enable_hpa_scale_to_zero }},HPAContainerMetrics={{ .Cluster.ConfigItems.enable_hpa_container_metrics }},StatefulSetAutoDeletePVC={{ .Cluster.ConfigItems.enable_statefulset_autodelete_pvc }},TopologyAwareHints={{ .Cluster.ConfigItems.enable_topology_aware_hints }},MinDomainsInPodTopologySpread={{ .Cluster.ConfigItems.min_domains_in_pod_topology_spread_enabled }},CronJobTimeZone={{.Cluster.ConfigItems.cronjob_time_zone_enabled}},MaxUnavailableStatefulSet={{.Cluster.ConfigItems.max_unavailable_statefulset_enabled}}
147144
- --service-account-key-file=/etc/kubernetes/ssl/service-account-public-key.pem
148145
- --service-account-signing-key-file=/etc/kubernetes/ssl/service-account-private-key.pem
149146
- --service-account-issuer={{ .Cluster.APIServerURL }}

cluster/node-pools/worker-combined/stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Mappings:
1010
Images:
1111
eu-central-1:
1212
# Use the node pool's architecture to construct the config item name that we're using to get the AMI name.
13-
MachineImage: '{{ index .NodePool.ConfigItems (print "kuberuntu_image_v1_24_" .NodePool.ConfigItems.kuberuntu_distro_worker "_" .Values.InstanceInfo.Architecture) }}'
13+
MachineImage: '{{ index .NodePool.ConfigItems (print "kuberuntu_image_v1_25_" .NodePool.ConfigItems.kuberuntu_distro_worker "_" .Values.InstanceInfo.Architecture) }}'
1414

1515
Resources:
1616
AutoScalingGroup:

cluster/node-pools/worker-karpenter/provisioners.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ spec:
88
amiFamily: Custom
99
amiSelectorTerms:
1010
# Select on any AMI that has any of the following IDs
11-
- id: {{ index .NodePool.ConfigItems (print "kuberuntu_image_v1_24_" .NodePool.ConfigItems.kuberuntu_distro_worker "_amd64") }}
12-
- id: {{ index .NodePool.ConfigItems (print "kuberuntu_image_v1_24_" .NodePool.ConfigItems.kuberuntu_distro_worker "_arm64") }}
11+
- id: {{ index .NodePool.ConfigItems (print "kuberuntu_image_v1_25_" .NodePool.ConfigItems.kuberuntu_distro_worker "_amd64") }}
12+
- id: {{ index .NodePool.ConfigItems (print "kuberuntu_image_v1_25_" .NodePool.ConfigItems.kuberuntu_distro_worker "_arm64") }}
1313
metadataOptions:
1414
httpEndpoint: enabled
1515
httpProtocolIPv6: disabled
@@ -208,4 +208,4 @@ spec:
208208
weight: {{.NodePool.ConfigItems.scaling_priority}}
209209
# {{ end}}
210210

211-
#{{ end }}
211+
#{{ end }}

cluster/node-pools/worker-splitaz/stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Mappings:
1010
Images:
1111
eu-central-1:
1212
# Use the node pool's architecture to construct the config item name that we're using to get the AMI name.
13-
MachineImage: '{{ index .NodePool.ConfigItems (print "kuberuntu_image_v1_24_" .NodePool.ConfigItems.kuberuntu_distro_worker "_" .Values.InstanceInfo.Architecture) }}'
13+
MachineImage: '{{ index .NodePool.ConfigItems (print "kuberuntu_image_v1_25_" .NodePool.ConfigItems.kuberuntu_distro_worker "_" .Values.InstanceInfo.Architecture) }}'
1414

1515
Resources:
1616
{{ with $data := . }}

cluster/node-pools/worker-splitaz/userdata.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@ write_files:
6666
cpuCFSQuota: false
6767
featureGates:
6868
SizeMemoryBackedVolumes: {{ .Cluster.ConfigItems.enable_size_memory_backed_volumes }}
69-
{{- if eq .Cluster.ConfigItems.enable_ephemeral_containers "true" }}
70-
EphemeralContainers: true
71-
{{- end }}
7269
{{- if eq .NodePool.ConfigItems.exec_probe_timeout_enabled "false" }}
7370
ExecProbeTimeout: false
7471
{{- end }}

test/e2e/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# builder image
22
FROM golang:1.21 as builder
33

4-
RUN CGO_ENABLED=0 go install github.com/onsi/ginkgo/ginkgo@v1.16.5
4+
RUN CGO_ENABLED=0 go install github.com/onsi/ginkgo/v2/ginkgo@v2.1.6
55

66
# final image
77
# TODO get rid of python dependencies

0 commit comments

Comments
 (0)