Skip to content

Instantly share code, notes, and snippets.

@mattdodge
Created January 10, 2018 21:45
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 mattdodge/d60ab0c8fb8ae1dcb3b08dbd41f31e84 to your computer and use it in GitHub Desktop.
Save mattdodge/d60ab0c8fb8ae1dcb3b08dbd41f31e84 to your computer and use it in GitHub Desktop.
Make existing kubernetes services headless
kubectl get svc -o json | jq -r '.items[] | select (.spec.clusterIP!="None")' | jq '.spec.clusterIP = "None"' | kubectl replace --force -f -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment