Skip to content

Commit

Permalink
Merge pull request #4371 from brunokino/master
Browse files Browse the repository at this point in the history
fix(cgroup): Issue 3890 - fixing a bug in DaemonSet
  • Loading branch information
phealy authored Dec 4, 2024
2 parents 74a4388 + 3148be8 commit 14d9383
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/cgroups/revert-cgroup-v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ spec:
echo "Using v2, reverting..."
sed -i 's/GRUB_CMDLINE_LINUX=""/GRUB_CMDLINE_LINUX="systemd.unified_cgroup_hierarchy=0"/' /etc/default/grub
update-grub
kubectl --kubeconfig=/var/lib/kubelet/kubeconfig label node ${HOSTNAME,,} cgroup-version=v1
reboot
else
kubectl --kubeconfig=/var/lib/kubelet/kubeconfig label node ${HOSTNAME,,} cgroup-version=v1
Expand All @@ -60,7 +59,8 @@ spec:
memory: 16Mi
securityContext:
privileged: true
priorityClassName: system-node-critical
hostNetwork: true
hostPID: true
hostIPC: true
terminationGracePeriodSeconds: 0
terminationGracePeriodSeconds: 30

0 comments on commit 14d9383

Please sign in to comment.