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...
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 Answer
first of all, you can follow below steps without manifest files:
- 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