Merge pull request #12985 from mbabker/gke-machine-type

Add ability to specify machine type for GKE
This commit is contained in:
Jerzy Szczepkowski 2015-08-21 10:29:01 +02:00
commit 3a6158f8ad
2 changed files with 3 additions and 0 deletions

View File

@ -28,6 +28,7 @@ GCLOUD="${GCLOUD:-gcloud}"
CMD_GROUP="${CMD_GROUP:-beta}"
GCLOUD_CONFIG_DIR="${GCLOUD_CONFIG_DIR:-${HOME}/.config/gcloud/kubernetes}"
MINION_SCOPES="${MINION_SCOPES:-"compute-rw,storage-ro"}"
MACHINE_TYPE="${MACHINE_TYPE:-n1-standard-1}"
# WARNING: any new vars added here must correspond to options that can be
# passed to `gcloud {CMD_GROUP} container clusters create`, or they will

View File

@ -113,6 +113,7 @@ function verify-prereqs() {
# CLUSTER_API_VERSION (optional)
# NUM_MINIONS
# MINION_SCOPES
# MACHINE_TYPE
function kube-up() {
echo "... in gke:kube-up()" >&2
detect-project >&2
@ -145,6 +146,7 @@ function kube-up() {
"--network=${NETWORK}"
"--scopes=${MINION_SCOPES}"
"--cluster-version=${CLUSTER_API_VERSION}"
"--machine-type=${MACHINE_TYPE}"
)
# Bring up the cluster.