Skip to content

Instantly share code, notes, and snippets.

@thomaspeitz
Created May 24, 2019 18:54
Show Gist options
  • Save thomaspeitz/4b2bfbe1c76c6ffdb0f3efec16f73fae to your computer and use it in GitHub Desktop.
Save thomaspeitz/4b2bfbe1c76c6ffdb0f3efec16f73fae to your computer and use it in GitHub Desktop.
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