Skip to content

Commit e801dbb

Browse files
arghosh93openshift-cherrypick-robot
authored and
openshift-cherrypick-robot
committed
Set mount propagation to HostToContainer for /var/lib/kubelet
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 <[email protected]>
1 parent 8014195 commit e801dbb

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

bindata/network/multus/multus.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ spec:
223223
# kubelet socket
224224
- name: host-var-lib-kubelet
225225
mountPath: /var/lib/kubelet
226+
mountPropagation: HostToContainer
226227
- name: hostroot
227228
mountPath: /hostroot
228229
mountPropagation: HostToContainer

bindata/network/ovn-kubernetes/managed/multi-zone-interconnect/ovnkube-node.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,7 @@ spec:
447447
- mountPath: /var/lib/kubelet
448448
name: host-kubelet
449449
readOnly: true
450+
mountPropagation: HostToContainer
450451
{{ end }}
451452
# for checking ovs-configuration service
452453
- mountPath: /etc/systemd/system

bindata/network/ovn-kubernetes/self-hosted/multi-zone-interconnect/ovnkube-node.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,7 @@ spec:
469469
- mountPath: /var/lib/kubelet
470470
name: host-kubelet
471471
readOnly: true
472+
mountPropagation: HostToContainer
472473
{{ end }}
473474
# for checking ovs-configuration service
474475
- mountPath: /etc/systemd/system

0 commit comments

Comments
 (0)