Lightbits CSI Plugin Guide
Lightbits VCP Plugin Guide
Lightbits vCenter Configuration Guide
Lightbits OpenStack Driver Support
Lightbits Cluster Federation
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Deploying StatefulSet
AI Tools
Summarize Page
Copy Markdown
Open in ChatGPT
Open in Claude
Connect to Cursor
Connect to VS Code
Deploying the StatefulSet Workload
helm install \
--set statefulset.enabled=true \
lb-csi-workload-sts \
lightbits-helm-repo/lb-csi-workload-examples
Will output:
NAME: lb-csi-workload-sts
LAST DEPLOYED: Sun Feb 21 16:09:02 2021
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None
Verifying the StatefulSet Workload
Verify that the following conditions are met:
PVandPVCisBoundPODs status isRunningStatefulSethas 3/3Ready
kubectl get pv,pvc,pods,sts
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE
persistentvolume/pvc-1a16e8da-427a-47a1-9974-c7f18b9d8abb 10Gi RWO Delete Bound default/test-mnt-example-sts-0 example-sc 2m4s
persistentvolume/pvc-57e6e555-43e3-4f39-9433-c287d3ab53d6 10Gi RWO Delete Bound default/test-mnt-example-sts-1 example-sc 114s
persistentvolume/pvc-945f0393-e711-4c75-b2f9-b80222d346ab 10Gi RWO Delete Bound default/test-mnt-example-sts-2 example-sc 103s
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
persistentvolumeclaim/test-mnt-example-sts-0 Bound pvc-1a16e8da-427a-47a1-9974-c7f18b9d8abb 10Gi RWO example-sc 2m5s
persistentvolumeclaim/test-mnt-example-sts-1 Bound pvc-57e6e555-43e3-4f39-9433-c287d3ab53d6 10Gi RWO example-sc 116s
persistentvolumeclaim/test-mnt-example-sts-2 Bound pvc-945f0393-e711-4c75-b2f9-b80222d346ab 10Gi RWO example-sc 104s
NAME READY STATUS RESTARTS AGE
pod/example-sts-0 1/1 Running 0 2m5s
pod/example-sts-1 1/1 Running 0 116s
pod/example-sts-2 1/1 Running 0 104s
NAME READY AGE
statefulset.apps/example-sts 3/3 2m5s
Uninstalling the StatefulSet Workload
helm uninstall lb-csi-workload-sts
Verify that StatefulSet and PODs resources are gone:
kubectl get pv,pvc,pods,sts
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE
persistentvolume/pvc-1a16e8da-427a-47a1-9974-c7f18b9d8abb 10Gi RWO Delete Bound default/test-mnt-example-sts-0 example-sc 5m31s
persistentvolume/pvc-57e6e555-43e3-4f39-9433-c287d3ab53d6 10Gi RWO Delete Bound default/test-mnt-example-sts-1 example-sc 5m21s
persistentvolume/pvc-945f0393-e711-4c75-b2f9-b80222d346ab 10Gi RWO Delete Bound default/test-mnt-example-sts-2 example-sc 5m10s
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
persistentvolumeclaim/test-mnt-example-sts-0 Bound pvc-1a16e8da-427a-47a1-9974-c7f18b9d8abb 10Gi RWO example-sc 5m32s
persistentvolumeclaim/test-mnt-example-sts-1 Bound pvc-57e6e555-43e3-4f39-9433-c287d3ab53d6 10Gi RWO example-sc 5m23s
persistentvolumeclaim/test-mnt-example-sts-2 Bound pvc-945f0393-e711-4c75-b2f9-b80222d346ab 10Gi RWO example-sc 5m11s
Since the default StorageClass.reclaimPolicy is Retain, the PVCs and PVs will remain and will not be deleted.
In order to delete them, run the following:
kubectl delete \
persistentvolumeclaim/test-mnt-example-sts-0 \
persistentvolumeclaim/test-mnt-example-sts-1 \
persistentvolumeclaim/test-mnt-example-sts-2
persistentvolumeclaim "test-mnt-example-sts-0" deleted
persistentvolumeclaim "test-mnt-example-sts-1" deleted
persistentvolumeclaim "test-mnt-example-sts-2" deleted
Verify that all resources are gone:
kubectl get pv,pvc,pods
No resources found in default namespace.
Last updated on
Was this page helpful?
Next to read:
Deploying Pre-Provisioned Block PV PVC and POD© 2026 Lightbits Labs™
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message