-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetupParameters.sh
executable file
·40 lines (31 loc) · 1.07 KB
/
setupParameters.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
# Config/setup parameters used during installation
KUBERNETES_VERSION=v1.9.0
# GCP parameters
REGION=${Region:-us-central1}
ZONE=${Zone:-us-central1-f}
gcloud config set compute/region ${REGION}
gcloud config set compute/zone ${ZONE}
# Generic node installation username
NODE_INSTALLATION_USER=ubuntu
# Master node parameters
MASTER_NODE_PREFIX=${MasterNodePrefix:-kubemaster}
NUMBER_OF_MASTERS=${NumberOfMasters:-3}
MASTER_DISK_SIZE=${MasterDiskSize:-10GB}
MASTER_DISK_TYPE=${MasterDiskType:-pd-standard}
MASTER_NODE_SIZE=${MasterNodeSize:-n1-standard-1}
# Worker node paramaters
WORKER_NODE_PREFIX=${WorkerNodePrefix:-kubeworker}
NUMBER_OF_WORKERS=${NumberOfWorkers:-3}
WORKER_DISK_SIZE=${WorkerDiskSize:-10GB}
WORKER_DISK_TYPE=${WorkerDiskType:-pd-standard}
WORKER_TAGS=${WorkerTags:-kubeworker}
WORKER_NODE_SIZE=${MasterNodeSize:-n1-standard-8}
# Network parameters
CLUSTER_NAME=${ClusterName:-staging}
CLUSTER_CIDR=10.3.0.0/16
CLUSTER_DNS=10.0.0.10
IP_NET=${IpNet:-10.2.0.0/16}
# Generic kubernetes parameters
DNS_DOMAIN=cluster.local
SERVICE_CLUSTER_IP_RANGE=10.0.0.0/16