File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -47,8 +47,10 @@ gcloud compute instances create "${RESOURCE_NAME}" --project="${GKE_PROJECT}" --
4747if [ " ${ADD_VM_IP_AUTH_NETWORKS} " = " true" ]; then
4848 EXTERNAL_IP=$( gcloud compute instances describe " ${RESOURCE_NAME} " --project=" ${GKE_PROJECT} " --zone=" ${GKE_CLUSTER_ZONE} " \
4949 --format=' value(networkInterfaces[0].accessConfigs[0].natIP)' )
50+ echo " External IP of the VM is: ${EXTERNAL_IP} "
5051 CURRENT_AUTH_NETWORK=$( gcloud container clusters describe " ${GKE_CLUSTER_NAME} " --zone=" ${GKE_CLUSTER_ZONE} " \
5152 --format=" value(masterAuthorizedNetworksConfig.cidrBlocks[0])" | sed ' s/cidrBlock=//' )
53+ echo " Current GKE master authorized networks: ${CURRENT_AUTH_NETWORK} "
5254 gcloud container clusters update " ${GKE_CLUSTER_NAME} " --zone=" ${GKE_CLUSTER_ZONE} " --enable-master-authorized-networks --master-authorized-networks=" ${EXTERNAL_IP} " /32," ${CURRENT_AUTH_NETWORK} "
5355fi
5456
You can’t perform that action at this time.
0 commit comments