Skip to content

Instantly share code, notes, and snippets.

@ayj
Last active March 11, 2020 17:30
Show Gist options
  • Save ayj/b399c732acf4f2677b71198c0098212b to your computer and use it in GitHub Desktop.
Save ayj/b399c732acf4f2677b71198c0098212b to your computer and use it in GitHub Desktop.
#!/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