Skip to content

Storage Class

Appears in

  • .Values.storageClass

Naming scheme

  • $FullName-$StorageClassName (release-name-chart-name-storageClassName)

storageClass

Define storage classes

KeystorageClass
Typemap
Required
Helm tpl
Default{}

Example

storageClass: {}

$name

Define storage class

KeystorageClass.$name
Typemap
Required
Helm tpl
Default{}

Example

storageClass:
storage-class-name: {}

enabled

Enables or Disables the storage class

KeystorageClass.$name.enabled
Typebool
Required
Helm tpl
Defaultfalse

Example

storageClass:
storage-class-name:
enabled: true

labels

Additional labels for storage class

KeystorageClass.$name.labels
Typemap
Required
Helm tpl✅ (On value only)
Default{}

Example

storageClass:
storage-class-name:
labels:
key: value

annotations

Additional annotations for storage class

KeystorageClass.$name.annotations
Typemap
Required
Helm tpl✅ (On value only)
Default{}

Example

storageClass:
storage-class-name:
annotations:
key: value

provisioner

Define the provisioner for this storage class

KeystorageClass.$name.provisioner
Typestring
Required
Helm tpl
Default""

Example

storageClass:
storage-class-name:
provisioner: some.provisioner.io

parameters

Define the parameters for this storage class

KeystorageClass.$name.parameters
Typemap
Required
Helm tpl✅ (On value only)
Default{}

Example

storageClass:
storage-class-name:
parameters:
key: value

reclaimPolicy

Define the reclaim policy for this storage class

KeystorageClass.$name.reclaimPolicy
Typestring
Required
Helm tpl
DefaultRetain

Valid values are:

  • Delete
  • Retain

Example

storageClass:
storage-class-name:
reclaimPolicy: retain

allowVolumeExpansion

Define if volume expansion is allowed for this storage class

KeystorageClass.$name.allowVolumeExpansion
Typebool
Required
Helm tpl
Defaultfalse

Example

storageClass:
storage-class-name:
allowVolumeExpansion: true

volumeBindingMode

Define the volume binding mode for this storage class

KeystorageClass.$name.volumeBindingMode
Typestring
Required
Helm tpl
DefaultImmediate

Valid values are:

  • Immediate
  • WaitForFirstConsumer

Example

storageClass:
storage-class-name:
volumeBindingMode: Immediate

mountOptions

Define the mount options for this storage class

KeystorageClass.$name.mountOptions
Typelist of string
Required
Helm tpl✅ (On each entry only)
Default[]

Example

storageClass:
storage-class-name:
mountOptions:
- option1
- option2=value

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