-
Notifications
You must be signed in to change notification settings - Fork 0
/
provision.conf.sh
executable file
·32 lines (28 loc) · 1005 Bytes
/
provision.conf.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
#!/bin/sh
# Versions
CRIO_VERSION="1.28"
CALICO_VERSION="3.27.2"
ETCD_VERSION="3.5.12"
INGRESS_NGINX_VERSION="4.9.1"
K8S_VERSION="1.28.8"
K8S_VERSION_MINOR="1.28"
K9S_VERSION="0.32.4"
KUBECTX_VERSION="0.9.5"
KUBENS_VERSION="0.9.5"
OPENEBS_VERSION="3.9.0"
# Cluster config
K8S_POD_CIDR="10.244.0.0/16"
K8S_SERVICE_CIDR="10.96.0.0/12"
K8S_MASTER_IP="192.168.56.101"
K8S_MASTER_NAME="master"
# Node config
K8S_NODE_ROLE="master" # use 'master' or 'worker'
K8S_NODE_IP="auto" # node IP reported by kubelet, use 'auto' to detect from interface
K8S_NODE_NAME="node1" # node name reported by kubelet
K8S_NODE_INTERFACE="eth1" # host-only interface
K8S_NODE_LABELS="kubernetes-host= server-role-web=true"
# Join config (for worker only)
## Get token from master with: kubeadm token create
K8S_TOKEN=""
## Get hash from master with: openssl x509 -pubkey -in /etc/kubernetes/pki/ca.crt | openssl rsa -pubin -outform der 2>/dev/null | openssl dgst -sha256 -hex | sed 's/^.* //'
K8S_CERTHASH=""