Skip to content

Commit

Permalink
Set mount propagation to HostToContainer for /var/lib/kubelet
Browse files Browse the repository at this point in the history
This PR is to change mountPropagation for /var/lib/kubelet
mount from None to HostToContainer. This is to allow clean
unmount of CSI Volumes.

Jira: https://issues.redhat.com/browse/OCPBUGS-30950

Signed-off-by: Arnab Ghosh <arnabghosh89@gmail.com>
  • Loading branch information
arghosh93 committed May 8, 2024
1 parent 4ce35ca commit 731aa4e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions bindata/network/multus/multus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ spec:
# kubelet socket
- name: host-var-lib-kubelet
mountPath: /var/lib/kubelet
mountPropagation: HostToContainer
- name: hostroot
mountPath: /hostroot
mountPropagation: HostToContainer
Expand Down
1 change: 1 addition & 0 deletions bindata/network/ovn-kubernetes/managed/ovnkube-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,7 @@ spec:
- mountPath: /var/lib/kubelet
name: host-kubelet
readOnly: true
mountPropagation: HostToContainer
{{ end }}
# for checking ovs-configuration service
- mountPath: /etc/systemd/system
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,7 @@ spec:
- mountPath: /var/lib/kubelet
name: host-kubelet
readOnly: true
mountPropagation: HostToContainer
{{ end }}
# for checking ovs-configuration service
- mountPath: /etc/systemd/system
Expand Down

0 comments on commit 731aa4e

Please sign in to comment.