Host Path
Appears in
Section titled “Appears in”.Values.persistence.$name
hostPath
Section titled “hostPath”Define the hostPath
| Key | persistence.$name.hostPath |
| Type | string |
| Required | ✅ |
Helm tpl | ✅ |
| Default | "" |
Example
persistence: hostpath-vol: hostPath: /path/to/hosthostPathType
Section titled “hostPathType”Define the hostPathType
| Key | persistence.$name.hostPathType |
| Type | string |
| Required | ❌ |
Helm tpl | ✅ |
| Default | "" |
Valid Values
""DirectoryOrCreateDirectoryFileOrCreateFileSocketCharDeviceBlockDevice
Example
persistence: hostpath-vol: hostPathType: DirectoryOrCreateFull Examples
Section titled “Full Examples”persistence: hostpath-vol: enabled: true type: hostPath mountPath: /path hostPath: /path/to/host hostPathType: DirectoryOrCreate