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
for line in $(gcloud compute instances list | \ | |
grep -v NAME | awk '{print $1}'); \ | |
do echo $line; (gcloud compute ssh $line -- curl -s ifconfig.co); \ | |
done && | |
for line in $(kubectl get pods | \ | |
grep -v NAME | awk '{print $1}'); \ | |
do echo $line; (kubectl exec -ti $line -- curl -s ifconfig.co); \ | |
done |
No comments:
Post a Comment