PVC / VCT
Appears in
.Values.persistence.$name
labels
Additional labels for persistence
Key | persistence.$name.labels |
Type | map |
Required | ❌ |
Helm tpl | ✅ (On value only) |
Default | {} |
Example
annotations
Additional annotations for persistence
Key | persistence.$name.annotations |
Type | map |
Required | ❌ |
Helm tpl | ✅ (On value only) |
Default | {} |
Example
namespace
Define the namespace for this object
Key | persistence.$name.namespace |
Type | string |
Required | ❌ |
Helm tpl | ✅ |
Default | "" |
Example
retain
Define wether the to add helm annotation to retain resource on uninstall. This does not guarantee that the resource will be retained.
Key | persistence.$name.retain |
Type | bool |
Required | ❌ |
Helm tpl | ❌ |
Default | See default here |
Example
accessModes
Define the accessModes of the PVC, if it’s single can be defined as a string, multiple as a list
Key | persistence.$name.accessModes |
Type | string or list |
Required | ❌ |
Helm tpl | ✅ |
Default | See default here |
Example
volumeName
Define the volumeName of a PV, backing the claim
Key | persistence.$name.volumeName |
Type | string |
Required | ❌ |
Helm tpl | ✅ |
Default | "" |
Example
existingClaim
Define an existing claim to use
Key | persistence.$name.existingClaim |
Type | string |
Required | ❌ |
Helm tpl | ✅ |
Default | "" |
Example
size
Define the size of the PVC
Key | persistence.$name.size |
Type | string |
Required | ❌ |
Helm tpl | ✅ |
Default | See default pvcSize and vctSize |
Example
storageClass
Define the storageClass to use
:::note How storageClass is resolved
- If storageClass is defined on the
persistence
-
->""
, (which means requesting a PV without class)- Else -> as is
- Else if fallback storageClass, -> this
- Else -> nothing (which means requesting a PV without class)
:::
Key | persistence.$name.storageClass |
Type | string |
Required | ❌ |
Helm tpl | ✅ |
Default | "" |
Example
dataSource
Define dataSource for the pvc
Key | persistence.$name.dataSource |
Type | map |
Required | ❌ |
Helm tpl | ❌ |
Default | {} |
Example
dataSource.kind
Define the kind of the dataSource
Key | persistence.$name.dataSource.kind |
Type | string |
Required | ✅ |
Helm tpl | ❌ |
Default | "" |
Valid Values
PersistentVolumeClaim
VolumeSnapshot
Example
dataSource.name
Define the name of the dataSource
Key | persistence.$name.dataSource.name |
Type | string |
Required | ✅ |
Helm tpl | ❌ |
Default | "" |
Example
static
Define static provisioning for the pvc
Key | persistence.$name.static |
Type | map |
Required | ❌ |
Helm tpl | ❌ |
Default | {} |
Example
static.mode
Define the mode of the static provisioning
Key | persistence.$name.static.mode |
Type | string |
Required | ✅ |
Helm tpl | ❌ |
Default | "" |
Valid Values
Example
mountOptions
Define mountOptions for the pvc.
Available only for static.mode: nfs|smb
Key | persistence.$name.mountOptions |
Type | list of map |
Required | ❌ |
Helm tpl | ❌ |
Default | [] |
Example
mountOptions[].key
Define the key of the mountOption
Key | persistence.$name.mountOptions[].key |
Type | string |
Required | ✅ |
Helm tpl | ✅ |
Default | "" |
Example
mountOptions[].value
Define the value of the mountOption
Key | persistence.$name.mountOptions[].value |
Type | string |
Required | ❌ |
Helm tpl | ✅ |
Default | "" |
Example
volumeSnapshots
Define volumeSnapshots for the pvc
Key | persistence.$name.volumeSnapshots |
Type | list of map |
Required | ❌ |
Helm tpl | ❌ |
Default | [] |
Example
volumeSnapshots[].name
Define the name of the volumeSnapshot
Key | persistence.$name.volumeSnapshots[].name |
Type | string |
Required | ❌ |
Helm tpl | ❌ |
Default | "" |
Example
volumeSnapshots[].enabled
Define if the volumeSnapshot is enabled
Key | persistence.$name.volumeSnapshots[].enabled |
Type | bool |
Required | ❌ |
Helm tpl | ❌ |
Default | false |
Example
volumeSnapshots[].labels
Define the labels of the volumeSnapshot
Key | persistence.$name.volumeSnapshots[].labels |
Type | map |
Required | ❌ |
Helm tpl | ✅ (On value only) |
Default | {} |
Example
volumeSnapshots[].annotations
Define the annotations of the volumeSnapshot
Key | persistence.$name.volumeSnapshots[].annotations |
Type | map |
Required | ❌ |
Helm tpl | ✅ (On value only) |
Default | {} |
Example
volumeSnapshots[].volumeSnapshotClassName
Define the volumeSnapshotClassName of the volumeSnapshot
Key | persistence.$name.volumeSnapshots[].volumeSnapshotClassName |
Type | string |
Required | ❌ |
Helm tpl | ❌ |
Default | "" |
Example