• Kubernetes Submit Queue's avatar
    Merge pull request #49640 from jsafrane/systemd-mount-service · 68ac78ae
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue
    
    Run mount in its own systemd scope.
    
    Kubelet needs to run /bin/mount in its own cgroup.
    
    - When kubelet runs as a systemd service, "systemctl restart kubelet" may kill all processes in the same cgroup and thus terminate fuse daemons that are needed for gluster and cephfs mounts.
    
    - When kubelet runs in a docker container, restart of the container kills all fuse daemons started in the container.
    
    Killing fuse daemons is bad, it basically unmounts volumes from running pods.
    
    This patch runs mount via "systemd-run --scope /bin/mount ...", which makes sure that any fuse daemons are forked in its own systemd scope (= cgroup) and they will survive restart of kubelet's systemd service or docker container.
    
    This helps with #34965
    
    As a downside, each new fuse daemon will run in its own transient systemd service and systemctl output may be cluttered.
    
    @kubernetes/sig-storage-pr-reviews 
    @kubernetes/sig-node-pr-reviews 
    
    ```release-note
    fuse daemons for GlusterFS and CephFS are now run in their own systemd scope when Kubernetes runs on a system with systemd.
    ```
    68ac78ae
Name
Last commit
Last update
..
async Loading commit data...
bandwidth Loading commit data...
config Loading commit data...
configz Loading commit data...
dbus Loading commit data...
ebtables Loading commit data...
env Loading commit data...
file Loading commit data...
flock Loading commit data...
goroutinemap Loading commit data...
hash Loading commit data...
i18n Loading commit data...
initsystem Loading commit data...
interrupt Loading commit data...
io Loading commit data...
ipconfig Loading commit data...
iptables Loading commit data...
keymutex Loading commit data...
labels Loading commit data...
limitwriter Loading commit data...
logs Loading commit data...
maps Loading commit data...
metrics Loading commit data...
mount Loading commit data...
net Loading commit data...
netsh Loading commit data...
node Loading commit data...
oom Loading commit data...
parsers Loading commit data...
pointer Loading commit data...
procfs Loading commit data...
reflector/prometheus Loading commit data...
removeall Loading commit data...
resourcecontainer Loading commit data...
rlimit Loading commit data...
selinux Loading commit data...
slice Loading commit data...
strings Loading commit data...
sysctl Loading commit data...
system Loading commit data...
tail Loading commit data...
taints Loading commit data...
template Loading commit data...
term Loading commit data...
threading Loading commit data...
tolerations Loading commit data...
version Loading commit data...
workqueue/prometheus Loading commit data...
BUILD Loading commit data...