How to remove PVC resource permanently.

255

 

In this article, we will release all the resources allocated to our Kubernetes container pod: not only GPU, CPU, and memory resources but we also free the PVC storage as well. So, make sure you copy all your data to the local drive before releasing PVC storage as well.

We have already learned how to release GPU, CPU, and memory resources by uninstalling the existing helm chart. For your convenience, we will repeat the steps again.

Steps

Uninstall the helm chart

Always remember to switch to the kubernetes icekube context

 

kubectl config set-context icekube --namespace=ltu-default
                   OR
kubectl config use-context icekube 
kubectl config set-context --current --namespace=ltu-default

List all the helm chart

To list all the helm chart current installed on the system just simply type the below command.

 

helm lists

 

It will simply list all the helm charts installed on the system.

List of Helm Charts Installed.
List of Helm Charts Installed.

 

You can see from the above output, that it is the name which we used the first name with a unique 8 integer digit.

Uninstall the helm chart

Simply use this name to uninstall the helm chart.

 

 helm uninstall  sumit49670241

 

Once you issue the helm uninstall command with the chart name. It will simply release all the resources except PVC, the storage. Thus, your data remains safe.

Deleting the PVC storage 

To delete the PVC storage you have to login to the ice.ri.se web portal, on the front page click on the Experimental Kubernetes cluster as shown below.

Click on the Experimental Kubernetes cluster
Click on the Experimental Kubernetes cluster

 

Then click on Rancher GUI

click on Rancher GUI
click on Rancher GUI

 

Then click on “Login with Keycloak”

click on "Login with Keycloak"
click on “Login with Keycloak”

 

From the below screenshot choose Global->icekube->ltu

Choose LTU namespace
Choose LTU namespace

 

Now clock on the “Volumes” tab and search for your volume name in the search bar.

Select Volume tab and search for the volume.
Select the Volume tab and search for the volume.
Select and delete the volume.
Select and delete the volume.

 

Note

Confirm twice before deleting a volume, otherwise, you will end up deleting resources of another user.