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>
(cherry picked from commit fbda8cc4ca)
This commit is contained in:
Madhu Rajanna 2020-01-13 09:35:50 +05:30 committed by Madhu Rajanna
parent f4d05a3ef9
commit ac76531a7c
8 changed files with 24 additions and 24 deletions

View File

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

View File

@ -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

View File

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

View File

@ -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

View File

@ -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

View File

@ -136,9 +136,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

View File

@ -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

View File

@ -160,9 +160,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