mirror of https://github.com/k3s-io/k3s
Using containervm image for gce by default
parent
f6db096741
commit
18685d49ed
|
@ -19,8 +19,10 @@ ZONE=us-central1-b
|
||||||
MASTER_SIZE=n1-standard-1
|
MASTER_SIZE=n1-standard-1
|
||||||
MINION_SIZE=n1-standard-1
|
MINION_SIZE=n1-standard-1
|
||||||
NUM_MINIONS=4
|
NUM_MINIONS=4
|
||||||
# gcloud/gcutil will expand this to the latest supported image.
|
# TODO(dchen1107): Filed an internal issue to create an alias
|
||||||
IMAGE=backports-debian-7-wheezy
|
# for containervm image, so that gcloud/gcutil will expand this
|
||||||
|
# to the latest supported image.
|
||||||
|
IMAGE=container-vm-v20141016
|
||||||
NETWORK=default
|
NETWORK=default
|
||||||
INSTANCE_PREFIX=kubernetes
|
INSTANCE_PREFIX=kubernetes
|
||||||
MASTER_NAME="${INSTANCE_PREFIX}-master"
|
MASTER_NAME="${INSTANCE_PREFIX}-master"
|
||||||
|
|
|
@ -19,8 +19,10 @@ ZONE=us-central1-b
|
||||||
MASTER_SIZE=g1-small
|
MASTER_SIZE=g1-small
|
||||||
MINION_SIZE=g1-small
|
MINION_SIZE=g1-small
|
||||||
NUM_MINIONS=2
|
NUM_MINIONS=2
|
||||||
# gcloud/gcutil will expand this to the latest supported image.
|
# TODO(dchen1107): Filed an internal issue to create an alias
|
||||||
IMAGE=backports-debian-7-wheezy
|
# for containervm image, so that gcloud/gcutil will expand this
|
||||||
|
# to the latest supported image.
|
||||||
|
IMAGE=container-vm-v20141016
|
||||||
NETWORK=e2e
|
NETWORK=e2e
|
||||||
INSTANCE_PREFIX="e2e-test-${USER}"
|
INSTANCE_PREFIX="e2e-test-${USER}"
|
||||||
MASTER_NAME="${INSTANCE_PREFIX}-master"
|
MASTER_NAME="${INSTANCE_PREFIX}-master"
|
||||||
|
|
|
@ -239,6 +239,13 @@ function kube-up {
|
||||||
local htpasswd
|
local htpasswd
|
||||||
htpasswd=$(cat "${KUBE_TEMP}/htpasswd")
|
htpasswd=$(cat "${KUBE_TEMP}/htpasswd")
|
||||||
|
|
||||||
|
if ! gcutil getimage "${IMAGE}" > /dev/null 2>&1; then
|
||||||
|
echo "Adding new image: ${IMAGE}"
|
||||||
|
gcutil addimage "${IMAGE}" \
|
||||||
|
"gs://gcp-containers-images/${IMAGE}.tar.gz" \
|
||||||
|
--project "${PROJECT}"
|
||||||
|
fi
|
||||||
|
|
||||||
if ! gcutil getnetwork "${NETWORK}" >/dev/null 2>&1; then
|
if ! gcutil getnetwork "${NETWORK}" >/dev/null 2>&1; then
|
||||||
echo "Creating new network for: ${NETWORK}"
|
echo "Creating new network for: ${NETWORK}"
|
||||||
# The network needs to be created synchronously or we have a race. The
|
# The network needs to be created synchronously or we have a race. The
|
||||||
|
|
Loading…
Reference in New Issue