mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-29 13:24:42 +00:00
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.
This commit is contained in:
parent
51fc7930d6
commit
8fb3e9fe2a
@ -55,6 +55,8 @@ spec:
|
|||||||
- mountPath: /var/lib/kubelet/pods
|
- mountPath: /var/lib/kubelet/pods
|
||||||
mountPropagation: Bidirectional
|
mountPropagation: Bidirectional
|
||||||
name: mountpoint-dir
|
name: mountpoint-dir
|
||||||
|
- mountPath: /tmp
|
||||||
|
name: tmp
|
||||||
volumes:
|
volumes:
|
||||||
- hostPath:
|
- hostPath:
|
||||||
path: /var/lib/kubelet/plugins/csi-hostpath-v0
|
path: /var/lib/kubelet/plugins/csi-hostpath-v0
|
||||||
@ -68,3 +70,7 @@ spec:
|
|||||||
path: /var/lib/kubelet/plugins
|
path: /var/lib/kubelet/plugins
|
||||||
type: Directory
|
type: Directory
|
||||||
name: registration-dir
|
name: registration-dir
|
||||||
|
- name: tmp
|
||||||
|
hostPath:
|
||||||
|
path: /tmp
|
||||||
|
type: Directory
|
||||||
|
@ -55,6 +55,8 @@ spec:
|
|||||||
- mountPath: /var/lib/kubelet/pods
|
- mountPath: /var/lib/kubelet/pods
|
||||||
mountPropagation: Bidirectional
|
mountPropagation: Bidirectional
|
||||||
name: mountpoint-dir
|
name: mountpoint-dir
|
||||||
|
- mountPath: /tmp
|
||||||
|
name: tmp
|
||||||
volumes:
|
volumes:
|
||||||
- hostPath:
|
- hostPath:
|
||||||
path: /var/lib/kubelet/plugins/csi-hostpath
|
path: /var/lib/kubelet/plugins/csi-hostpath
|
||||||
@ -68,3 +70,7 @@ spec:
|
|||||||
path: /var/lib/kubelet/plugins_registry
|
path: /var/lib/kubelet/plugins_registry
|
||||||
type: Directory
|
type: Directory
|
||||||
name: registration-dir
|
name: registration-dir
|
||||||
|
- name: tmp
|
||||||
|
hostPath:
|
||||||
|
path: /tmp
|
||||||
|
type: Directory
|
||||||
|
Loading…
Reference in New Issue
Block a user