File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -88,8 +88,10 @@ function create-kubemark-master {
88
88
REGION=$( grep -o " ^[a-z]*-[a-z0-9]*" " ${KUBE_TEMP} " /cluster-location.txt)
89
89
MASTER_NAME=" ${KUBE_GCE_INSTANCE_PREFIX} " -master
90
90
91
- MASTER_INTERNAL_IP=$( gcloud compute addresses describe " ${MASTER_NAME} -internal-ip" \
92
- --project " ${PROJECT} " --region " ${REGION} " -q --format=' value(address)' )
91
+ if [[ ${GCE_PRIVATE_CLUSTER:- } == " true" ]]; then
92
+ MASTER_INTERNAL_IP=$( gcloud compute addresses describe " ${MASTER_NAME} -internal-ip" \
93
+ --project " ${PROJECT} " --region " ${REGION} " -q --format=' value(address)' )
94
+ fi
93
95
MASTER_IP=$( gcloud compute addresses describe " ${MASTER_NAME} -ip" \
94
96
--project " ${PROJECT} " --region " ${REGION} " -q --format=' value(address)' )
95
97
You can’t perform that action at this time.
0 commit comments