Commit 8fb3e9fe authored by Jan Safranek's avatar Jan Safranek

Make HostPath CSI driver persistent across restart.

The driver dynamically provisions its volumes in /tmp. To preserve the data across driver restarts, the directory must be mapped to more persistent place, /tmp on the host seems to be the safest choice.
parent 51fc7930
......@@ -55,6 +55,8 @@ spec:
- mountPath: /var/lib/kubelet/pods
mountPropagation: Bidirectional
name: mountpoint-dir
- mountPath: /tmp
name: tmp
volumes:
- hostPath:
path: /var/lib/kubelet/plugins/csi-hostpath-v0
......@@ -68,3 +70,7 @@ spec:
path: /var/lib/kubelet/plugins
type: Directory
name: registration-dir
- name: tmp
hostPath:
path: /tmp
type: Directory
......@@ -55,6 +55,8 @@ spec:
- mountPath: /var/lib/kubelet/pods
mountPropagation: Bidirectional
name: mountpoint-dir
- mountPath: /tmp
name: tmp
volumes:
- hostPath:
path: /var/lib/kubelet/plugins/csi-hostpath
......@@ -68,3 +70,7 @@ spec:
path: /var/lib/kubelet/plugins_registry
type: Directory
name: registration-dir
- name: tmp
hostPath:
path: /tmp
type: Directory
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment