Fix Kubemark config after IP addresses machinations

This commit is contained in:
Wojciech Tyczynski 2016-07-22 11:40:10 +02:00
parent 180e671972
commit 28205d6a43
3 changed files with 1 additions and 2 deletions

View File

@ -23,6 +23,7 @@ source "${KUBE_ROOT}/cluster/gce/config-common.sh"
GCLOUD=gcloud
ZONE=${KUBE_GCE_ZONE:-us-central1-b}
REGION=${ZONE%-*}
NUM_NODES=${NUM_NODES:-100}
MASTER_SIZE=${MASTER_SIZE:-n1-standard-$(get-master-size)}
MASTER_DISK_TYPE=pd-ssd

View File

@ -80,7 +80,6 @@ run-gcloud-compute-with-retries disks create "${MASTER_NAME}-pd" \
--type "${MASTER_DISK_TYPE}" \
--size "${MASTER_DISK_SIZE}"
REGION=${ZONE%-*}
run-gcloud-compute-with-retries addresses create "${MASTER_NAME}-ip" \
--project "${PROJECT}" \
--region "${REGION}" -q

View File

@ -32,7 +32,6 @@ gcloud compute instances delete "${MASTER_NAME}" \
gcloud compute disks delete "${MASTER_NAME}-pd" \
${GCLOUD_COMMON_ARGS} || true
REGION=${ZONE%-*}
gcloud compute addresses delete "${MASTER_NAME}-ip" \
--project "${PROJECT}" \
--region "${REGION}" \