Skip to content

Latest commit

 

History

History
82 lines (64 loc) · 2.63 KB

ref-storage-persistent.adoc

File metadata and controls

82 lines (64 loc) · 2.63 KB

Persistent storage

Persistent storage uses {K8sPersistentVolumeClaims} to provision persistent volumes for storing data. Persistent Volume Claims can be used to provision volumes of many different types, depending on the {K8SStorageClass} which will provision the volume. The data types which can be used with persistent volume claims include many types of SAN storage as well as {K8sLocalPersistentVolumes}.

To use persistent storage, the type has to be set to persistent-claim. Persistent storage supports additional configuration options:

id (optional)

Storage identification number. This option is mandatory for storage volumes defined in a JBOD storage declaration. Default is 0.

size (required)

Defines the size of the persistent volume claim, for example, "1000Gi".

class (optional)

The {ProductPlatformName} {K8SStorageClass} to use for dynamic volume provisioning.

selector (optional)

Allows selecting a specific persistent volume to use. It contains key:value pairs representing labels for selecting such a volume.

deleteClaim (optional)

Boolean value which specifies if the Persistent Volume Claim has to be deleted when the cluster is undeployed. Default is false.

Warning
Resizing persistent storage for existing {ProductName} clusters is not currently supported. You must decide the necessary storage size before deploying the cluster.
Example fragment of persistent storage configuration with 1000Gi size
# ...
storage:
  type: persistent-claim
  size: 1000Gi
# ...

The following example demonstrates the use of a storage class.

Example fragment of persistent storage configuration with specific Storage Class
# ...
storage:
  type: persistent-claim
  size: 1Gi
  class: my-storage-class
# ...

Finally, a selector can be used to select a specific labeled persistent volume to provide needed features such as an SSD.

Example fragment of persistent storage configuration with selector
# ...
storage:
  type: persistent-claim
  size: 1Gi
  selector:
    hdd-type: ssd
  deleteClaim: true
# ...
Persistent Volume Claim naming

When the persistent storage is used, it will create Persistent Volume Claims with the following names:

data-cluster-name-kafka-idx

Persistent Volume Claim for the volume used for storing data for the Kafka broker pod idx.

data-cluster-name-zookeeper-idx

Persistent Volume Claim for the volume used for storing data for the Zookeeper node pod idx.