From 5ae81821e44d750e3cdcba872052c181bd3e1361 Mon Sep 17 00:00:00 2001 From: Mike Cronce Date: Fri, 14 Dec 2018 15:06:42 -0500 Subject: [PATCH 1/2] deploy/cephfs/kubernetes/csi-cephfsplugin.yaml: Made volumeMounts for plugin container slightly more readable --- deploy/cephfs/kubernetes/csi-cephfsplugin.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/cephfs/kubernetes/csi-cephfsplugin.yaml b/deploy/cephfs/kubernetes/csi-cephfsplugin.yaml index fb7461849..a3db6e42e 100644 --- a/deploy/cephfs/kubernetes/csi-cephfsplugin.yaml +++ b/deploy/cephfs/kubernetes/csi-cephfsplugin.yaml @@ -63,8 +63,8 @@ spec: - 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 From a0be6e27d369e8fd1fadfcc97543f777ab6d54eb Mon Sep 17 00:00:00 2001 From: Mike Cronce Date: Fri, 14 Dec 2018 15:16:11 -0500 Subject: [PATCH 2/2] deploy/cephfs/kubernetes/csi-cephfsplugin.yaml: Add /var/lib/kubelet/plugins/kubernetes.io/csi bidirectional mount into plugin container --- deploy/cephfs/kubernetes/csi-cephfsplugin.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/deploy/cephfs/kubernetes/csi-cephfsplugin.yaml b/deploy/cephfs/kubernetes/csi-cephfsplugin.yaml index a3db6e42e..e8f49f2af 100644 --- a/deploy/cephfs/kubernetes/csi-cephfsplugin.yaml +++ b/deploy/cephfs/kubernetes/csi-cephfsplugin.yaml @@ -60,6 +60,9 @@ 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" @@ -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/