-
Notifications
You must be signed in to change notification settings - Fork 0
/
environment.sh
executable file
·42 lines (32 loc) · 1.53 KB
/
environment.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
39
40
41
42
#!/usr/bin/env bash
export BASE_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
source ${BASE_DIR}/helpers.sh
check_local_requirements
### GCP SECTION ###
export GCP_PROJECT_ID=bart-istio-demo
export GCP_KOPS_BUCKET=bart-gcp-tid-multi
export GCP_DOMAIN=k8s.local
export GCP_SSH_CIDR=$(curl ipinfo.io/ip)/32
### KOPS SECTION ###
export KOPS_FEATURE_FLAGS=AlphaAllowGCE
export KOPS_STATE_STORE=gs://${GCP_KOPS_BUCKET}
### K8S SECTION ###
export K8S_VERSION=1.20.7
export K8S_CL1_NAME=tid-cluster1.${GCP_DOMAIN}
export K8S_CL1_ZONES=europe-north1-a,europe-north1-b,europe-north1-c
export K8S_CL1_LABELS=Owner=BartVanBos,Team=PreSales,Purpose=MultiCluster,[email protected],Cluster=${K8S_CL1_NAME}
export K8S_CL2_NAME=tid-cluster2.${GCP_DOMAIN}
export K8S_CL2_ZONES=europe-west1-b,europe-west1-c,europe-west1-d
export K8S_CL2_LABELS=Owner=BartVanBos,Team=PreSales,Purpose=MultiCluster,[email protected],Cluster=${K8S_CL2_NAME}
### ISTIO SECTION ###
export ISTIO_VERSION=1.11.3
export ISTIO_FLAVOR=istio
# export ISTIO_FLAVOR=tetrate
# export ISTIO_FLAVOR=tetratefips
### OUTPUT SECTION ###
export KOPS_CONFIG_CL1=${BASE_DIR}/output/kops-${K8S_CL1_NAME}.yaml
export K8S_KUBECONF_CL1=${BASE_DIR}/output/kubeconfig-${K8S_CL1_NAME}.yaml
export CROSS_SECRET_CL1=${BASE_DIR}/output/cross-secret-${K8S_CL1_NAME}.yaml
export KOPS_CONFIG_CL2=${BASE_DIR}/output/kops-${K8S_CL2_NAME}.yaml
export K8S_KUBECONF_CL2=${BASE_DIR}/output/kubeconfig-${K8S_CL2_NAME}.yaml
export CROSS_SECRET_CL2=${BASE_DIR}/output/cross-secret-${K8S_CL2_NAME}.yaml