Skip to content

Instantly share code, notes, and snippets.

@dasgoll
Last active October 28, 2022 01:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dasgoll/dca01da5f17f452200e883eca3097cfd to your computer and use it in GitHub Desktop.
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
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