← Back to Blog

πŸš€ How to Delete a Helm Release in Kubernetes

πŸš€ How to Delete a Helm Release in Kubernetes Managing Helm releases is essential when working with Kubernetes, especially when you need to clean up resources. In this post, I'll guide you through the steps to delete a Helm release properly.

πŸš€ How to Delete a Helm Release in Kubernetes

Managing Helm releases is essential when working with Kubernetes, especially when you need to clean up resources. In this post, I'll guide you through the steps to delete a Helm release properly.


πŸ› οΈ Step-by-Step Instructions to Delete a Helm Release

  • Identify the Release Name
    Before uninstalling, ensure you know the name of the release you want to delete. If you're unsure, list all installed Helm releases using:

helm list

This command will display all the releases and their statuses. Locate the name of the release you wish to delete. For example, if your release is called my-release, proceed to the next step.

  • Uninstall the Helm Release
    To delete the release, run the following command (replace my-release with your release name):

helm uninstall my-release

  • Verify the Deletion
    After the uninstall command, ensure that the release and its resources are gone by checking your Kubernetes cluster:

kubectl get all

Additionally, you can check if the release is still listed by running:

helm list

  • πŸ—‘οΈ Optional: Remove Persistent Volumes (PV) and Persistent Volume Claims (PVC)
    If your Helm release created PVs or PVCs, they may not be deleted automatically. To manually delete them:

kubectl get pvc
kubectl delete pvc


πŸš€ And That's It!

Your Helm release and its associated resources should now be fully deleted! πŸŽ‰


Bonus: How to Install Helm on Windows πŸ–₯️

`curl.exe -o helm-v3.16.1-windows-amd64.zip https://get.helm.sh/helm-v3.16.1-windows-amd64.zip

Expand-Archive -Path .\helm-v3.16.1-windows-amd64.zip -DestinationPath .\helm-v3.16.1

`

For those of you setting up Helm on Windows, here’s a quick guide.

  • Download Helm for Windows
    Visit the Helm Releases GitHub page, and download the latest helm-vX.Y.Z-windows-amd64.zip.

  • Extract and Set Helm Path
    After downloading, extract the files and move helm.exe to a directory in your system's PATH.

  • Verify Installation
    Open a terminal (PowerShell or CMD) and run:

helm version

If everything is set up correctly, you should see the Helm version displayed.


πŸš€ You're ready to manage Kubernetes resources like a pro!


πŸ”— Connect with me:

Error Certificate issues

The error you're encountering, "curl: (56) Failure when receiving data from the peer," typically happens when the connection to the server is interrupted or there are issues with the server you are trying to download from.

Here are a few potential causes and solutions:

  • Network Issues: The connection might have been interrupted due to a network problem on your end or the server's end. You can try:

  • Checking your internet connection.

  • Trying to download the file again.

  • Server-Side Issues: The Helm server might be experiencing downtime or an overload. If this is the case, retrying after some time or downloading the file from a mirror or alternative link may help.

  • Firewall/Proxy: If you're behind a corporate firewall or using a proxy, it might block or interrupt the connection. You can:

  • Check if your firewall or antivirus is blocking the download.

  • Disable the proxy (if any) or configure curl to work with your proxy settings.

  • Version of curl: An outdated version of curl may cause unexpected failures. Make sure you are using the latest version of curl.

If none of these work, you could manually download the file via a browser or try the following command to bypass possible certificate issues:

curl -k -O https://get.helm.sh/helm-v3.16.1-windows-amd64.zip

The -k option allows curl to skip SSL certificate validation, which might help in some cases if there are SSL issues.


Imported from rifaterdemsahin.com Β· 2024