Created
January 10, 2018 21:45
-
-
Save mattdodge/d60ab0c8fb8ae1dcb3b08dbd41f31e84 to your computer and use it in GitHub Desktop.
Make existing kubernetes services headless
This file contains hidden or 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
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