Storage Class
Appears in
Section titled “Appears in”.Values.storageClass
Naming scheme
Section titled “Naming scheme”$FullName-$StorageClassName(release-name-chart-name-storageClassName)
storageClass
Section titled “storageClass”Define storage classes
| Key | storageClass |
| Type | map |
| Required | ❌ |
Helm tpl | ❌ |
| Default | {} |
Example
storageClass: {}Define storage class
| Key | storageClass.$name |
| Type | map |
| Required | ✅ |
Helm tpl | ❌ |
| Default | {} |
Example
storageClass: storage-class-name: {}enabled
Section titled “enabled”Enables or Disables the storage class
| Key | storageClass.$name.enabled |
| Type | bool |
| Required | ✅ |
Helm tpl | ✅ |
| Default | false |
Example
storageClass: storage-class-name: enabled: truelabels
Section titled “labels”Additional labels for storage class
| Key | storageClass.$name.labels |
| Type | map |
| Required | ❌ |
Helm tpl | ✅ (On value only) |
| Default | {} |
Example
storageClass: storage-class-name: labels: key: valueannotations
Section titled “annotations”Additional annotations for storage class
| Key | storageClass.$name.annotations |
| Type | map |
| Required | ❌ |
Helm tpl | ✅ (On value only) |
| Default | {} |
Example
storageClass: storage-class-name: annotations: key: valueprovisioner
Section titled “provisioner”Define the provisioner for this storage class
| Key | storageClass.$name.provisioner |
| Type | string |
| Required | ✅ |
Helm tpl | ❌ |
| Default | "" |
Example
storageClass: storage-class-name: provisioner: some.provisioner.ioparameters
Section titled “parameters”Define the parameters for this storage class
| Key | storageClass.$name.parameters |
| Type | map |
| Required | ❌ |
Helm tpl | ✅ (On value only) |
| Default | {} |
Example
storageClass: storage-class-name: parameters: key: valuereclaimPolicy
Section titled “reclaimPolicy”Define the reclaim policy for this storage class
| Key | storageClass.$name.reclaimPolicy |
| Type | string |
| Required | ❌ |
Helm tpl | ❌ |
| Default | Retain |
Valid values are:
DeleteRetain
Example
storageClass: storage-class-name: reclaimPolicy: retainallowVolumeExpansion
Section titled “allowVolumeExpansion”Define if volume expansion is allowed for this storage class
| Key | storageClass.$name.allowVolumeExpansion |
| Type | bool |
| Required | ❌ |
Helm tpl | ❌ |
| Default | false |
Example
storageClass: storage-class-name: allowVolumeExpansion: truevolumeBindingMode
Section titled “volumeBindingMode”Define the volume binding mode for this storage class
| Key | storageClass.$name.volumeBindingMode |
| Type | string |
| Required | ❌ |
Helm tpl | ❌ |
| Default | Immediate |
Valid values are:
ImmediateWaitForFirstConsumer
Example
storageClass: storage-class-name: volumeBindingMode: ImmediatemountOptions
Section titled “mountOptions”Define the mount options for this storage class
| Key | storageClass.$name.mountOptions |
| Type | list of string |
| Required | ❌ |
Helm tpl | ✅ (On each entry only) |
| Default | [] |
Example
storageClass: storage-class-name: mountOptions: - option1 - option2=valueFull Examples
Section titled “Full Examples”storageClass: example: provisioner: some.provisioner.io enabled: true parameters: param1: value1 param2: value2 reclaimPolicy: retain allowVolumeExpansion: true volumeBindingMode: Immediate mountOptions: - option1 - option2=value