Skip to content

Commit 61a6bce

Browse files
authored
Merge pull request #8684 from killianmuldoon/pr-pin-cgroup-driver-v0.3-v0.4
🌱 Pin cgroup driver used in v0.3 and v0.4 templates
2 parents 7bba729 + f2f566b commit 61a6bce

File tree

7 files changed

+30
-0
lines changed

7 files changed

+30
-0
lines changed

test/e2e/data/infrastructure-docker/v0.3/bases/cluster-with-kcp.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,16 @@ spec:
6767
nodeRegistration:
6868
criSocket: unix:///var/run/containerd/containerd.sock
6969
kubeletExtraArgs:
70+
# We have to pin the cgroupDriver to cgroupfs for Kubernetes < v1.24 because kind does not support systemd for those versions, but kubeadm >= 1.21 defaults to systemd.
71+
# This cluster is used in tests where the Kubernetes version is < 1.24
72+
cgroup-driver: cgroupfs
7073
eviction-hard: 'nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%'
7174
joinConfiguration:
7275
nodeRegistration:
7376
criSocket: unix:///var/run/containerd/containerd.sock
7477
kubeletExtraArgs:
78+
# We have to pin the cgroupDriver to cgroupfs for Kubernetes < v1.24 because kind does not support systemd for those versions, but kubeadm >= 1.21 defaults to systemd.
79+
# This cluster is used in tests where the Kubernetes version is < 1.24
80+
cgroup-driver: cgroupfs
7581
eviction-hard: 'nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%'
7682
version: "${KUBERNETES_VERSION}"

test/e2e/data/infrastructure-docker/v0.3/bases/md.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ spec:
2424
nodeRegistration:
2525
criSocket: unix:///var/run/containerd/containerd.sock
2626
kubeletExtraArgs:
27+
# We have to pin the cgroupDriver to cgroupfs for Kubernetes < v1.24 because kind does not support systemd for those versions, but kubeadm >= 1.21 defaults to systemd.
28+
# This cluster is used in tests where the Kubernetes version is < 1.24
29+
cgroup-driver: cgroupfs
2730
eviction-hard: 'nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%'
2831
---
2932
# MachineDeployment object with

test/e2e/data/infrastructure-docker/v0.4/bases/cluster-with-kcp.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,16 @@ spec:
6868
nodeRegistration:
6969
criSocket: unix:///var/run/containerd/containerd.sock
7070
kubeletExtraArgs:
71+
# We have to pin the cgroupDriver to cgroupfs for Kubernetes < v1.24 because kind does not support systemd for those versions, but kubeadm >= 1.21 defaults to systemd.
72+
# This cluster is used in tests where the Kubernetes version is < 1.24
73+
cgroup-driver: cgroupfs
7174
eviction-hard: 'nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%'
7275
joinConfiguration:
7376
nodeRegistration:
7477
criSocket: unix:///var/run/containerd/containerd.sock
7578
kubeletExtraArgs:
79+
# We have to pin the cgroupDriver to cgroupfs for Kubernetes < v1.24 because kind does not support systemd for those versions, but kubeadm >= 1.21 defaults to systemd.
80+
# This cluster is used in tests where the Kubernetes version is < 1.24
81+
cgroup-driver: cgroupfs
7682
eviction-hard: 'nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%'
7783
version: "${KUBERNETES_VERSION}"

test/e2e/data/infrastructure-docker/v0.4/bases/md.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ spec:
2424
nodeRegistration:
2525
criSocket: unix:///var/run/containerd/containerd.sock
2626
kubeletExtraArgs:
27+
# We have to pin the cgroupDriver to cgroupfs for Kubernetes < v1.24 because kind does not support systemd for those versions, but kubeadm >= 1.21 defaults to systemd.
28+
# This cluster is used in tests where the Kubernetes version is < 1.24
29+
cgroup-driver: cgroupfs
2730
eviction-hard: 'nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%'
2831
---
2932
# MachineDeployment object

test/e2e/data/infrastructure-docker/v0.4/bases/mp.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,7 @@ spec:
3636
joinConfiguration:
3737
nodeRegistration:
3838
kubeletExtraArgs:
39+
# We have to pin the cgroupDriver to cgroupfs for Kubernetes < v1.24 because kind does not support systemd for those versions, but kubeadm >= 1.21 defaults to systemd.
40+
# This cluster is used in tests where the Kubernetes version is < 1.24
41+
cgroup-driver: cgroupfs
3942
eviction-hard: nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%

test/e2e/data/infrastructure-docker/v1.0/bases/cluster-with-kcp.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,16 @@ spec:
8686
nodeRegistration:
8787
criSocket: unix:///var/run/containerd/containerd.sock
8888
kubeletExtraArgs:
89+
# We have to pin the cgroupDriver to cgroupfs for Kubernetes < v1.24 because kind does not support systemd for those versions, but kubeadm >= 1.21 defaults to systemd.
90+
# This cluster is used in tests where the Kubernetes version is < 1.24
91+
cgroup-driver: cgroupfs
8992
eviction-hard: 'nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%'
9093
joinConfiguration:
9194
nodeRegistration:
9295
criSocket: unix:///var/run/containerd/containerd.sock
9396
kubeletExtraArgs:
97+
# We have to pin the cgroupDriver to cgroupfs for Kubernetes < v1.24 because kind does not support systemd for those versions, but kubeadm >= 1.21 defaults to systemd.
98+
# This cluster is used in tests where the Kubernetes version is < 1.24
99+
cgroup-driver: cgroupfs
94100
eviction-hard: 'nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%'
95101
version: "${KUBERNETES_VERSION}"

test/e2e/data/infrastructure-docker/v1.0/bases/md.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ spec:
2424
nodeRegistration:
2525
criSocket: unix:///var/run/containerd/containerd.sock
2626
kubeletExtraArgs:
27+
# We have to pin the cgroupDriver to cgroupfs for Kubernetes < v1.24 because kind does not support systemd for those versions, but kubeadm >= 1.21 defaults to systemd.
28+
# This cluster is used in tests where the Kubernetes version is < 1.24
29+
cgroup-driver: cgroupfs
2730
eviction-hard: 'nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%'
2831
---
2932
# MachineDeployment object

0 commit comments

Comments
 (0)