Created
May 24, 2019 18:54
-
-
Save thomaspeitz/4b2bfbe1c76c6ffdb0f3efec16f73fae to your computer and use it in GitHub Desktop.
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
for app in `kubectl get deploy | cut -d ' ' -f 1 |grep -v NAME`;do kubectl get deploy $app -o json | tee backup-$app.json | jq '.spec.template.spec += { "dnsConfig": { "options": [{"name": "ndots", "value": "1"}]} }' | kubectl apply -f -;done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment