Created
January 29, 2024 11:52
-
-
Save suresh-mahawar/94053e505f5c004085e83db9fff540cc 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
| #!/bin/bash | |
| gcloud compute instances list --filter=gke-cluster --format="json" | jq '.[] | {name, external_ip: .networkInterfaces[0]["accessConfigs"][0].natIP}' | |
| { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment