- Configure Private Cloud
Configure storage
StreamNative Private Cloud uses Kubernetes Storage Classes to provision persistent storage volumes for ZooKeeper and BookKeeper.
Use default Kubernetes StorageClass
By default, StreamNative Private Cloud uses the default Kubernetes StorageClass to provision persistent volumes on Custom Resources (CRs).
Use the command below to get the name of the current default storage class.
kubectl get sc
To change the default Storage Class that is used to provision volumes, see Change the default StorageClass .
Use specific Kubernetes StorageClass
You can provide a storage class to use for ZooKeeper and BookKeeper.To use a specific Kubernetes StorageClass, follow these steps.
Create or use a pre-defined StorageClass you want to use in your Kubernetes cluster. You need to have sufficient permissions to create and modify StorageClasses in your Kubernetes cluster if you intend to create a new StorageClass to use rather than using a pre-existing one.
In your ZooKeeper and BookKeeper CRs, specify the name of the StorageClass to use:
- ZooKeeperCluster
spec:
persistence:
data:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 40Gi
# Set a pre-defined Kubernetes Storage Class
storageClassName: <Your Storage Class name>
dataLog:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 20Gi
# Set a pre-defined Kubernetes Storage Class
storageClassName: <Your Storage Class name>
- BookKeeperCluster
spec:
storage:
journal:
numDirsPerVolume: 1
numVolumes: 1
volumeClaimTemplate:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 20Gi
# Set a pre-defined Kubernetes Storage Class
storageClassName: <Your Storage Class name>
ledger:
numDirsPerVolume: 1
numVolumes: 1
volumeClaimTemplate:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 80Gi
# Set a pre-defined Kubernetes Storage Class
storageClassName: <Your Storage Class name>