I uninstalled nginx-ingress from my AKS cluster and almost all the resources got deleted my main service which is a type of LoadBalancer is still there I tried deleting manually by using the delete command but still, it's not deleting. I don't know what is the issue please help me out with this.
Thanks in advance
It may happen due to service.kubernetes.io/load-balancer-cleanup
finalizer.
Check Azure-k8s: Not able to delete Load Balancer service?, it can happen LB type service stuck in such way.
I would suggest you open service by running kubectl edit svc service_name
, remove below part and saving it again.
finalizers:
- service.kubernetes.io/load-balancer-cleanup
If that doesnt help please provide in your question detailed verbose deletion output + kubectl describe svc <service-name>
, as was mentioned before