diff --git a/deploy/cephfs/kubernetes/csi-cephfsplugin.yaml b/deploy/cephfs/kubernetes/csi-cephfsplugin.yaml index fb7461849..e8f49f2af 100644 --- a/deploy/cephfs/kubernetes/csi-cephfsplugin.yaml +++ b/deploy/cephfs/kubernetes/csi-cephfsplugin.yaml @@ -60,11 +60,14 @@ spec: volumeMounts: - name: plugin-dir mountPath: /var/lib/kubelet/plugins_registry/csi-cephfsplugin + - name: csi-plugins-dir + mountPath: /var/lib/kubelet/plugins/kubernetes.io/csi + mountPropagation: "Bidirectional" - name: pods-mount-dir mountPath: /var/lib/kubelet/pods mountPropagation: "Bidirectional" - - mountPath: /sys - name: host-sys + - name: host-sys + mountPath: /sys - name: lib-modules mountPath: /lib/modules readOnly: true @@ -75,6 +78,10 @@ spec: hostPath: path: /var/lib/kubelet/plugins_registry/csi-cephfsplugin type: DirectoryOrCreate + - name: csi-plugins-dir + hostPath: + path: /var/lib/kubelet/plugins/kubernetes.io/csi + type: DirectoryOrCreate - name: registration-dir hostPath: path: /var/lib/kubelet/plugins_registry/