-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathk8s.env
64 lines (58 loc) · 1.88 KB
/
k8s.env
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# timezone, chinese user need to set timezone to "Ashai/Shanghai" or "Asia/Chongqing".
# If you are not a chinese user, please comment out the variable TIMEZONE.
TIMEZONE="Asia/Shanghai"
# k8s node hostname and ip
declare -A MASTER WORKER EXTRA_MASTER ADD_WORKER
declare -x LINUX_SOFTWARE_MIRROR
# master node: hostname and ip
MASTER=(
[master1]=10.250.16.11
[master2]=10.250.16.12
[master3]=10.250.16.13)
# worker node: hostname and ip
WORKER=(
[worker1]=10.250.16.21
[worker2]=10.250.16.22
[worker3]=10.250.16.23)
# extra master node: hostname and ip
EXTRA_MASTER=(
[master4]=10.250.16.14
[master5]=10.250.16.15
[master6]=10.250.16.16)
# add worker node: hostname and ip
ADD_WORKER=(
[worker4]=10.250.16.24
[worker5]=10.250.16.25)
# k8s service nework cidr
# k8s pod network cidr
# SRV_NETWORK_IP: kubernetes.default.svc.cluster.local address (usually service netweork first ip)
# SRV_NETWORK_DNS_IP: kube-dns.kube-system.svc.cluster.local address (coredns)
CONTROL_PLANE_ENDPOINT="10.250.16.10:8443"
SRV_NETWORK_CIDR="172.18.0.0/16"
SRV_NETWORK_IP="172.18.0.1"
SRV_NETWORK_DNS_IP="172.18.0.10"
POD_NETWORK_CIDR="192.169.0.0/16"
KUBE_ROOT_PASS="toor" # k8s node root passwd, set here
KUBE_VERSION="v1.24" # Choose the version of k8s you want to install. support v1.20 v1.21 v1.22, default to v1.22.
#KUBE_VERSION="v1.23"
#KUBE_VERSION="v1.22"
#KUBE_VERSION="v1.21"
#KUBE_VERSION="v1.20"
KUBE_PROXY_MODE="ipvs" # kube-proxy mode, support iptables ipvs, default to ipvs.
#KUBE_PROXY_MODE="iptables"
# only support open source software mirror in china
LINUX_SOFTWARE_MIRROR="ustc"
#LINUX_SOFTWARE_MIRROR="nju"
#LINUX_SOFTWARE_MIRROR="bupt"
#LINUX_SOFTWARE_MIRROR="aliyun"
# kubernetes addons-3rd
INSTALL_INGRESS=1
INSTALL_METALLB=""
INSTALL_KUBOARD=""
INSTALL_KONG=""
INSTALL_LONGHORN=""
INSTALL_CEPHCSI=""
INSTALL_TRAEFIK=""
INSTALL_NFSCLIENT=""
INSTALL_DASHBOARD=""
INSTALL_HARBOR=""