How to force delete deployment in k8s using helm?

by darrion.kuhn , in category: Third Party Scripts , 10 months ago

How to force delete deployment in k8s using helm?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by dana , 10 months ago

@darrion.kuhn 

To force delete a deployment in Kubernetes using Helm, you can use the following command:

1
helm delete <release-name> --namespace <namespace> --no-hooks --no-wait --timeout 0


Here's what each flag does:

  • : Replace this with the name of your Helm release.
  • --namespace : Specify the namespace where the release is deployed.
  • --no-hooks: Skips running pre-delete hooks defined in your chart.
  • --no-wait: Deletes the release without waiting for the deletion to be completed.
  • --timeout 0: Sets the timeout value to 0, ensuring that the deletion does not time out.


By combining these flags, you can force delete a deployment in Kubernetes using Helm.