Skip to content

Custom

When you wish to specify a custom volume, you can use the custom type. This can be used for example to mount configMap or Secret objects.

See the Kubernetes docs for more information.

Field Mandatory Docs / Description
volumeSpec Yes Define the raw Volume spec here.

Minimal configuration

persistence:
  config:
    enabled: true
    type: custom
    volumeSpec:
      downwardAPI:
        items:
          - path: "labels"
            fieldRef:
              fieldPath: metadata.labels
          - path: "annotations"
            fieldRef:
              fieldPath: metadata.annotations