How to Delete a Ingress Controller on Kubernetes?

I have a Kubernetes cluster in which I have multiple ingress controllers. I have deleted the source file of one ingress controller. How can I delete the ingress controller that I don't want further ??

1

1 Answer

first of all, you can follow below steps without manifest files:

  1. get the namespace which your ingress controller installed in
   kubectl get ns 

for example : ingress-nginx

2- remove all resources in this namespace

kubectl delete all  --all -n ingress-nginx

if your ingress controller is not installed in a dedicated namespace so you will have to remove resources one by one .

kubectl delete ingress ingress-nginx
kubectl delete deployment ingress-nginx
kubectl delete service ingress-nginx
1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Elena Rostova

Elena Rostova

Lead Health, Wellness & Medical Journalist

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.

Share this article
Twitter Facebook Pinterest