Skip to content

[cern] kubelet.service: rootfs must be rshared

Robert Vasek requested to merge kubelet-rshared-rootfs into cern/train

By default, /rootfs is a private mount. When the kubelet service is restarted, it copies mounts from node's / into kubelet's /rootfs, but since they are private, no events are shared between between these to locations.

This then makes it impossible to delete any pre-exisitng Pods that use volumes, as they have stale mounts in /rootfs even though their /var/lib/kubelet/pods/<UID>/volumes was already unmounted.

This commit shares /rootfs, enabling mount events to be propagated between both these locations, fixing the issue.

Fixes #43 (closed)

Edited by Robert Vasek

Merge request reports