Skip to content

Instantly share code, notes, and snippets.

@mauriballes
Created November 9, 2022 17:25
Show Gist options
  • Save mauriballes/4188823f5eba49a4daa7abfa40db4a5d to your computer and use it in GitHub Desktop.
Save mauriballes/4188823f5eba49a4daa7abfa40db4a5d to your computer and use it in GitHub Desktop.

Kill pods on Terminating state

WARNING!!!
COPY FROM STACKOVERFLOW

Thanks to:

# Do this
kubectl -n redis delete pods <pod> --grace-period=0 --force

# If the first command don't work, use this
kubectl -n redis patch pod <pod> -p '{"metadata":{"finalizers":null}}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment