Skip to content

Instantly share code, notes, and snippets.

@cqsd
Last active May 23, 2021 02:31
Show Gist options
  • Save cqsd/f4e8d602d43eedbb29ceade02401a141 to your computer and use it in GitHub Desktop.
Save cqsd/f4e8d602d43eedbb29ceade02401a141 to your computer and use it in GitHub Desktop.
various kubernetes bullshit

Remove something stuck in the Terminating phase (or whatever other read-only deletion state) https://kubernetes.io/blog/2021/05/14/using-finalizers-to-control-deletion/

kubectl patch configmap/mymap \
    --type json \
    --patch='[ { "op": "remove", "path": "/metadata/finalizers" } ]'

EKS

  • hanging terraform destroy on network resources resolved by manually deleting all load balancers managed by the aws lb controller (nb: the cluster had already been destroyed at this point)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment