Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Commit

Permalink
change cgroup-driver to systemd
Browse files Browse the repository at this point in the history
Kind images for k8s v1.24 require `cgroup-driver: systemd` to be set

kubernetes-sigs/kind#1726
  • Loading branch information
hongtaiwang committed Nov 16, 2022
1 parent 0bc7af8 commit 49b399f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,10 @@ spec:
jsonPatches:
- op: add
path: "/spec/template/spec/kubeadmConfigSpec/initConfiguration/nodeRegistration/kubeletExtraArgs/cgroup-driver"
value: cgroupfs
value: systemd
- op: add
path: "/spec/template/spec/kubeadmConfigSpec/joinConfiguration/nodeRegistration/kubeletExtraArgs/cgroup-driver"
value: cgroupfs
value: systemd
- name: antrea-prekubeadm
definitions:
- selector:
Expand Down Expand Up @@ -188,7 +188,7 @@ spec:
jsonPatches:
- op: add
path: "/spec/template/spec/joinConfiguration/nodeRegistration/kubeletExtraArgs/cgroup-driver"
value: cgroupfs
value: systemd
- name: customImage
description: "Sets the container image that is used for running dockerMachines for the controlPlane and default-worker machineDeployments."
definitions:
Expand Down
6 changes: 3 additions & 3 deletions providers/infrastructure-docker/v1.2.4/cconly/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,10 @@ spec:
jsonPatches:
- op: add
path: "/spec/template/spec/kubeadmConfigSpec/initConfiguration/nodeRegistration/kubeletExtraArgs/cgroup-driver"
value: cgroupfs
value: systemd
- op: add
path: "/spec/template/spec/kubeadmConfigSpec/joinConfiguration/nodeRegistration/kubeletExtraArgs/cgroup-driver"
value: cgroupfs
value: systemd
- name: antrea-prekubeadm
definitions:
- selector:
Expand Down Expand Up @@ -188,7 +188,7 @@ spec:
jsonPatches:
- op: add
path: "/spec/template/spec/joinConfiguration/nodeRegistration/kubeletExtraArgs/cgroup-driver"
value: cgroupfs
value: systemd
- name: customImage
description: "Sets the container image that is used for running dockerMachines for the controlPlane and default-worker machineDeployments."
definitions:
Expand Down
8 changes: 2 additions & 6 deletions providers/infrastructure-docker/v1.2.4/ytt/base-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,13 @@ spec:
nodeRegistration:
criSocket: /var/run/containerd/containerd.sock
kubeletExtraArgs:
# We have to pin the cgroupDriver to cgroupfs as kubeadm >=1.21 defaults to systemd
# kind will implement systemd support in: https://github.com/kubernetes-sigs/kind/issues/1726
cgroup-driver: cgroupfs
cgroup-driver: systemd
eviction-hard: 'nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%'
joinConfiguration:
nodeRegistration:
criSocket: /var/run/containerd/containerd.sock
kubeletExtraArgs:
# We have to pin the cgroupDriver to cgroupfs as kubeadm >=1.21 defaults to systemd
# kind will implement systemd support in: https://github.com/kubernetes-sigs/kind/issues/1726
cgroup-driver: cgroupfs
cgroup-driver: systemd
eviction-hard: 'nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%'
preKubeadmCommands: []
files: []
Expand Down

0 comments on commit 49b399f

Please sign in to comment.