mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 05:55:51 +00:00
Add create-k8s-node-pool.sh script
This commit is contained in:
parent
e2d5fac2ed
commit
0bfc257a01
1 changed files with 26 additions and 0 deletions
26
udc-misc/create-k8s-node-pool.sh
Executable file
26
udc-misc/create-k8s-node-pool.sh
Executable 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}"
|
Loading…
Reference in a new issue