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 <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna 2020-01-13 09:35:50 +05:30 committed by mergify[bot]
parent a4f6a3407f
commit fbda8cc4ca
8 changed files with 24 additions and 24 deletions

View File

@ -164,9 +164,9 @@ spec:
{{- end }} {{- end }}
volumes: volumes:
- name: socket-dir - name: socket-dir
hostPath: emptyDir: {
path: {{ .Values.socketDir }} medium: "Memory"
type: DirectoryOrCreate }
- name: host-sys - name: host-sys
hostPath: hostPath:
path: /sys path: /sys

View File

@ -142,9 +142,9 @@ spec:
{{- end }} {{- end }}
volumes: volumes:
- name: socket-dir - name: socket-dir
hostPath: emptyDir: {
path: {{ .Values.socketDir }} medium: "Memory"
type: DirectoryOrCreate }
- name: host-sys - name: host-sys
hostPath: hostPath:
path: /sys path: /sys

View File

@ -179,9 +179,9 @@ spec:
{{- end }} {{- end }}
volumes: volumes:
- name: socket-dir - name: socket-dir
hostPath: emptyDir: {
path: {{ .Values.socketDir }} medium: "Memory"
type: DirectoryOrCreate }
- name: host-dev - name: host-dev
hostPath: hostPath:
path: /dev path: /dev

View File

@ -159,9 +159,9 @@ spec:
{{- end }} {{- end }}
volumes: volumes:
- name: socket-dir - name: socket-dir
hostPath: emptyDir: {
path: {{ .Values.socketDir }} medium: "Memory"
type: DirectoryOrCreate }
- name: host-dev - name: host-dev
hostPath: hostPath:
path: /dev path: /dev

View File

@ -133,9 +133,9 @@ spec:
imagePullPolicy: "IfNotPresent" imagePullPolicy: "IfNotPresent"
volumes: volumes:
- name: socket-dir - name: socket-dir
hostPath: emptyDir: {
path: /var/lib/kubelet/plugins/cephfs.csi.ceph.com medium: "Memory"
type: DirectoryOrCreate }
- name: host-sys - name: host-sys
hostPath: hostPath:
path: /sys path: /sys

View File

@ -149,9 +149,9 @@ spec:
imagePullPolicy: "IfNotPresent" imagePullPolicy: "IfNotPresent"
volumes: volumes:
- name: socket-dir - name: socket-dir
hostPath: emptyDir: {
path: /var/lib/kubelet/plugins/cephfs.csi.ceph.com medium: "Memory"
type: DirectoryOrCreate }
- name: host-sys - name: host-sys
hostPath: hostPath:
path: /sys path: /sys

View File

@ -156,9 +156,9 @@ spec:
hostPath: hostPath:
path: /lib/modules path: /lib/modules
- name: socket-dir - name: socket-dir
hostPath: emptyDir: {
path: /var/lib/kubelet/plugins/rbd.csi.ceph.com medium: "Memory"
type: DirectoryOrCreate }
- name: ceph-csi-config - name: ceph-csi-config
configMap: configMap:
name: ceph-csi-config name: ceph-csi-config

View File

@ -173,9 +173,9 @@ spec:
hostPath: hostPath:
path: /lib/modules path: /lib/modules
- name: socket-dir - name: socket-dir
hostPath: emptyDir: {
path: /var/lib/kubelet/plugins/rbd.csi.ceph.com medium: "Memory"
type: DirectoryOrCreate }
- name: ceph-csi-config - name: ceph-csi-config
configMap: configMap:
name: ceph-csi-config name: ceph-csi-config