81e0219343dbbba961d46511c528d0f933b28bb2
[iec.git] / src / foundation / scripts / config
1 #!/bin/bash
2 # shellcheck disable=SC2034
3
4 # Host user which can log into master and each worker nodes
5 HOST_USER=${HOST_USER:-iec}
6
7 REPO_URL="https://gerrit.akraino.org/r/iec"
8 #log file
9 LOG_FILE="kubeadm.log"
10
11
12 # Master node IP address
13 K8S_MASTER_IP="10.169.36.152"
14
15 # HOST_USER's password on Master node
16 K8S_MASTERPW="123456"
17
18 ######################################################
19 #
20 #  K8S_WORKER_GROUP is an array which consists of 2
21 #  parts. One is k8s worker ip address. The other is
22 #  the user password.
23 #
24 ######################################################
25 K8S_WORKER_GROUP=(
26 "10.169.40.106,123456"
27 )
28
29 # K8s parameter
30 CLUSTER_IP=172.16.1.136 # Align with the value in our K8s setup script
31 POD_NETWORK_CIDR=192.168.0.0/16
32 SVC_CIDR=172.16.1.0/24
33 #IEC support multiple network solution for Kubernetes: calico,flannel,contivpp,cilium,etc
34 CNI_TYPE=calico
35 #kubernetes-cni version 0.7.5/ 0.6.0
36 CNI_VERSION=0.7.5
37 #kubernetes version: 1.15.2/ 1.13.0
38 KUBE_VERSION=1.15.0
39
40 # DEV_NAME is an associative array, list network interface device names used by contivpp,
41 # Use IP address of K8S_WORKER_GROUP as key, for example
42 #  DEV_NAME=(
43 #  [10.169.40.106]="enp137s0f0"
44 #  )
45 declare -A DEV_NAME
46 DEV_NAME=()