Skip to content

Instantly share code, notes, and snippets.

@talonx
Created January 31, 2020 17:58
Show Gist options
  • Save talonx/5a40a85145f4078db651bc5ed346c901 to your computer and use it in GitHub Desktop.
Save talonx/5a40a85145f4078db651bc5ed346c901 to your computer and use it in GitHub Desktop.
public_ip=`gcloud compute instances list --filter="name=(${node_name})" --format="value(networkInterfaces[].accessConfigs[0].natIP)"`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment