Last active
March 11, 2020 17:30
-
-
Save ayj/b399c732acf4f2677b71198c0098212b to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
kc() { | |
kubectl $@ | |
} | |
ic() { | |
istioctl $@ | |
} | |
for namespace in $(kc get namespace -o jsonpath={.items[*].metadata.name}); do | |
if [ "${namespace}" = "kube-system" ]; then | |
continue | |
fi | |
for pod in $(kc -n ${namespace} get pod -o jsonpath={.items[*].metadata.name}); do | |
echo "--- ${namespace}/${pod}" | |
ic -n ${namespace} proxy-config secret ${pod} | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment