Removing the Resources and Exploring the Effects
Practice with the Deployment by removing the created resources and exploring the effects of removal.
Deleting the Deployment
Let’s delete the jenkins Deployment:
The output shows us that the deployment "jenkins" is deleted.
Did anything happen with the PersistentVolumeClaim and the PersistentVolume?
The combined output of both commands is as follows:
Even though we have removed the Jenkins Deployment and the Pod that used the claim, both the PersistentVolumeClaim and PersistentVolumes are intact. The manual-ebs-01 volume is still bound to the jenkins claim.
Deleting the PersistentVolumeClaim
What would happen if we remove the PersistentVolumeClaim jenkins?
The output shows that the persistentvolumeclaim "jenkins" is deleted ...