Skip to content

Commit

Permalink
always mount kubelet root cgroup
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio Ojea committed Dec 15, 2020
1 parent e5285fe commit fa34b4c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions images/base/files/usr/local/bin/entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,24 @@ fix_cgroup() {
mount_kubelet_cgroup_root "/kubelet" "${subsystem}"
done
fi
if [[ -z "${docker_cgroup_mounts}" ]] || [[ -z "${podman_cgroup_mounts}" ]]; then
while read -r subsystem; do
mount_kubelet_cgroup_root "/kubelet" "${subsystem}"
done <<EOF
/sys/fs/cgroup/systemd
/sys/fs/cgroup/cpu,cpuacct
/sys/fs/cgroup/net_cls,net_prio
/sys/fs/cgroup/cpuset
/sys/fs/cgroup/hugetlb
/sys/fs/cgroup/freezer
/sys/fs/cgroup/blkio
/sys/fs/cgroup/perf_event
/sys/fs/cgroup/memory
/sys/fs/cgroup/devices
/sys/fs/cgroup/pids
EOF
fi

}

fix_machine_id() {
Expand Down

0 comments on commit fa34b4c

Please sign in to comment.