- Clean up the resources started with this application
- Release the assigned storage
As we deprovision this environment, we're going to watch the PVCs (Persistent Volume Claims) and see that Rook deallocates the storage. You'll need two shell sessions on the Kubernetes master (node1). The first will watch the PVCs and in the second you'll deprovision the application.
Start watching the PVCs
watch -n1 -d kubectl get pvc
The YAML files used to deploy the applications and provision the storage can be used to deprovision the environmne. This is more efficient than deprovisioning each resource (container, storage, etc) manually.
Go ahead and deprovision the database and watch the PVC deallocate in the first shell session.
kubectl delete -f mysql.yaml
And now deallocate the Wordpress application.
kubectl delete -f wordpress.yaml
Through the Ceph Toolbox and/or the Ceph Dashboard, verify that all the PVCs have been released.
Once you're done, proceed to Lab30