Add create-k8s-node-pool.sh script

This commit is contained in:
Alexander Sharov 2018-09-29 03:22:11 +04:00
parent e2d5fac2ed
commit 0bfc257a01

View file

@ -0,0 +1,26 @@
#!/usr/bin/env bash
########################################################
#
# Name: create-k8s-node-pool.sh
#
##########################################################
POOL_NAME='cicd-k8s-pool'
CLUSTER_NAME='cicd'
CLUSTER_ZONE='europe-west1-b'
SCOPES='compute-rw,storage-rw,logging-write,monitoring-write'
gcloud container node-pools create "${POOL_NAME}" \
--cluster="${CLUSTER_NAME}" \
--disk-size='15' \
--disk-type='pd-standard' \
--enable-autorepair \
--enable-autoupgrade \
--image-type='COS' \
--machine-type='custom-1-3072' \
--min-cpu-platform='Automatic' \
--node-version='1.10.7-gke.2' \
--num-nodes='3' \
--zone="${CLUSTER_ZONE}" \
--scopes="${SCOPES}"