Last active
October 28, 2022 01:55
-
-
Save dasgoll/dca01da5f17f452200e883eca3097cfd to your computer and use it in GitHub Desktop.
Ingress resources are not getting deleted even though the alb ingress controller deployment is deleted
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Reference: [https://github.com/kubernetes-sigs/aws-load-balancer-controller/issues/1629#issuecomment-726872539] | |
I deleted the AWS Load Balancer Controller (alb) before deleting the ingress, and I couldn't delete the ingress. | |
Solution: | |
-> % k get ingress echoserver -o yaml | grep -A 5 finalizers | |
finalizers: | |
- group.ingress.k8s.aws/mygroup | |
generation: 19 | |
name: echoserver | |
namespace: default | |
resourceVersion: "5730914" | |
-> % kubectl patch ingress echoserver -p '{"metadata":{"finalizers":[]}}' --type=merge | |
ingress.networking.k8s.io/echoserver patched | |
#kubectl patch pod example-pod -p '{"metadata: {"finalizers": null}}' | |
and now it's gone! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment