B Increasing Persistent Volume Claim (PVC)
Increasing the PVC size to support scalability is a mandatory task and
must be performed only after the Helm installation or upgrade is complete.
Note:
The PVC size increment must not be performed during the Helm installation or upgrade.Perform the following steps to increase the PVC:
- Set the
ALLOWVOLUMEEXPANSION
to True for the Storageclass. The default value is standard. - Run the following command to scale down the statefulset for the
namespace.
When the statefulset is scaled down, the pod will go to terminate state.kubectl scale sts provgw-auditor-service --replicas=0 -n <namespace>
- Run the following command to edit the
PVC.
You can change thekubectl edit pvc dynamic-auditor-pvc-provgw-auditor-service-0 -n <namespace >
storage
space to the required value and save the details.spec: accessModes: - ReadWriteOnce resources: requests: storage: 10Gi storageClassName: standard volumeMode: Filesystem volumeName: pvc-87978b35-2320-4da5-9ca0-1dae183d29e7 status: accessModes: - ReadWriteOnce capacity: storage: 10Gi phase: Bound
- Run the following command to scale-up the
statefulset.
kubectl scale sts provgw-auditor-service --replicas=1 -n <namespace>
- Run the following command to view the increased storage in the
pod.
kubectl get pvc -n <namespace>