From fbda8cc4caf6ca818dc62a23d12d51c582cf8067 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Mon, 13 Jan 2020 09:35:50 +0530 Subject: [PATCH] Use EmptyDir to store provisioner socket currently, we are making use of host path directory to store the provisioner socket, as this the socket is not needed by anyone else other than containers inside the provisioner pod using the empty directory to store this socket is the best option. Signed-off-by: Madhu Rajanna --- .../ceph-csi-cephfs/templates/provisioner-deployment.yaml | 6 +++--- .../ceph-csi-cephfs/templates/provisioner-statefulset.yaml | 6 +++--- charts/ceph-csi-rbd/templates/provisioner-deployment.yaml | 6 +++--- charts/ceph-csi-rbd/templates/provisioner-statefulset.yaml | 6 +++--- .../kubernetes/v1.13/csi-cephfsplugin-provisioner.yaml | 6 +++--- .../kubernetes/v1.14+/csi-cephfsplugin-provisioner.yaml | 6 +++--- deploy/rbd/kubernetes/v1.13/csi-rbdplugin-provisioner.yaml | 6 +++--- deploy/rbd/kubernetes/v1.14+/csi-rbdplugin-provisioner.yaml | 6 +++--- 8 files changed, 24 insertions(+), 24 deletions(-) diff --git a/charts/ceph-csi-cephfs/templates/provisioner-deployment.yaml b/charts/ceph-csi-cephfs/templates/provisioner-deployment.yaml index 5409e2600..c8b300988 100644 --- a/charts/ceph-csi-cephfs/templates/provisioner-deployment.yaml +++ b/charts/ceph-csi-cephfs/templates/provisioner-deployment.yaml @@ -164,9 +164,9 @@ spec: {{- end }} volumes: - name: socket-dir - hostPath: - path: {{ .Values.socketDir }} - type: DirectoryOrCreate + emptyDir: { + medium: "Memory" + } - name: host-sys hostPath: path: /sys diff --git a/charts/ceph-csi-cephfs/templates/provisioner-statefulset.yaml b/charts/ceph-csi-cephfs/templates/provisioner-statefulset.yaml index 919e2284e..4400aaf24 100644 --- a/charts/ceph-csi-cephfs/templates/provisioner-statefulset.yaml +++ b/charts/ceph-csi-cephfs/templates/provisioner-statefulset.yaml @@ -142,9 +142,9 @@ spec: {{- end }} volumes: - name: socket-dir - hostPath: - path: {{ .Values.socketDir }} - type: DirectoryOrCreate + emptyDir: { + medium: "Memory" + } - name: host-sys hostPath: path: /sys diff --git a/charts/ceph-csi-rbd/templates/provisioner-deployment.yaml b/charts/ceph-csi-rbd/templates/provisioner-deployment.yaml index 6562a4c87..deacc136c 100644 --- a/charts/ceph-csi-rbd/templates/provisioner-deployment.yaml +++ b/charts/ceph-csi-rbd/templates/provisioner-deployment.yaml @@ -179,9 +179,9 @@ spec: {{- end }} volumes: - name: socket-dir - hostPath: - path: {{ .Values.socketDir }} - type: DirectoryOrCreate + emptyDir: { + medium: "Memory" + } - name: host-dev hostPath: path: /dev diff --git a/charts/ceph-csi-rbd/templates/provisioner-statefulset.yaml b/charts/ceph-csi-rbd/templates/provisioner-statefulset.yaml index 5fbbbfea9..3fbe69f35 100644 --- a/charts/ceph-csi-rbd/templates/provisioner-statefulset.yaml +++ b/charts/ceph-csi-rbd/templates/provisioner-statefulset.yaml @@ -159,9 +159,9 @@ spec: {{- end }} volumes: - name: socket-dir - hostPath: - path: {{ .Values.socketDir }} - type: DirectoryOrCreate + emptyDir: { + medium: "Memory" + } - name: host-dev hostPath: path: /dev diff --git a/deploy/cephfs/kubernetes/v1.13/csi-cephfsplugin-provisioner.yaml b/deploy/cephfs/kubernetes/v1.13/csi-cephfsplugin-provisioner.yaml index d71ec0da9..c7f06f6fd 100644 --- a/deploy/cephfs/kubernetes/v1.13/csi-cephfsplugin-provisioner.yaml +++ b/deploy/cephfs/kubernetes/v1.13/csi-cephfsplugin-provisioner.yaml @@ -133,9 +133,9 @@ spec: imagePullPolicy: "IfNotPresent" volumes: - name: socket-dir - hostPath: - path: /var/lib/kubelet/plugins/cephfs.csi.ceph.com - type: DirectoryOrCreate + emptyDir: { + medium: "Memory" + } - name: host-sys hostPath: path: /sys diff --git a/deploy/cephfs/kubernetes/v1.14+/csi-cephfsplugin-provisioner.yaml b/deploy/cephfs/kubernetes/v1.14+/csi-cephfsplugin-provisioner.yaml index e0bbbd5ea..1989bd9e8 100644 --- a/deploy/cephfs/kubernetes/v1.14+/csi-cephfsplugin-provisioner.yaml +++ b/deploy/cephfs/kubernetes/v1.14+/csi-cephfsplugin-provisioner.yaml @@ -149,9 +149,9 @@ spec: imagePullPolicy: "IfNotPresent" volumes: - name: socket-dir - hostPath: - path: /var/lib/kubelet/plugins/cephfs.csi.ceph.com - type: DirectoryOrCreate + emptyDir: { + medium: "Memory" + } - name: host-sys hostPath: path: /sys diff --git a/deploy/rbd/kubernetes/v1.13/csi-rbdplugin-provisioner.yaml b/deploy/rbd/kubernetes/v1.13/csi-rbdplugin-provisioner.yaml index db5124892..a6aaf0ed1 100644 --- a/deploy/rbd/kubernetes/v1.13/csi-rbdplugin-provisioner.yaml +++ b/deploy/rbd/kubernetes/v1.13/csi-rbdplugin-provisioner.yaml @@ -156,9 +156,9 @@ spec: hostPath: path: /lib/modules - name: socket-dir - hostPath: - path: /var/lib/kubelet/plugins/rbd.csi.ceph.com - type: DirectoryOrCreate + emptyDir: { + medium: "Memory" + } - name: ceph-csi-config configMap: name: ceph-csi-config diff --git a/deploy/rbd/kubernetes/v1.14+/csi-rbdplugin-provisioner.yaml b/deploy/rbd/kubernetes/v1.14+/csi-rbdplugin-provisioner.yaml index 0eb4f460b..0ba1477bf 100644 --- a/deploy/rbd/kubernetes/v1.14+/csi-rbdplugin-provisioner.yaml +++ b/deploy/rbd/kubernetes/v1.14+/csi-rbdplugin-provisioner.yaml @@ -173,9 +173,9 @@ spec: hostPath: path: /lib/modules - name: socket-dir - hostPath: - path: /var/lib/kubelet/plugins/rbd.csi.ceph.com - type: DirectoryOrCreate + emptyDir: { + medium: "Memory" + } - name: ceph-csi-config configMap: name: ceph-csi-config