# 'etcd' cluster should have odd member(s) (1,3,5,...) [etcd] _etcd_ # master node(s) [kube_master] _master_ # work node(s) [kube_node] _node_ # [optional] harbor server, a private docker registry # 'NEW_INSTALL': 'yes' to install a harbor server; 'no' to integrate with existed one # 'SELF_SIGNED_CERT': 'no' you need put files of certificates named harbor.pem and harbor-key.pem in directory 'down' [harbor] #192.168.1.8 HARBOR_DOMAIN="harbor.yourdomain.com" NEW_INSTALL=no SELF_SIGNED_CERT=yes _harbor_host_ # [optional] loadbalance for accessing k8s from outside [ex_lb] _ex_lb_ #192.168.1.6 LB_ROLE=backup EX_APISERVER_VIP=192.168.1.250 EX_APISERVER_PORT=8443 #192.168.1.7 LB_ROLE=master EX_APISERVER_VIP=192.168.1.250 EX_APISERVER_PORT=8443 # [optional] ntp server for the cluster [chrony] _chrony_ [all:vars] # --------- Main Variables --------------- # Arch of servers where k8s cluster runs on. amd64(x86),arm64 CLUSTER_ARCH="_cluster_arch_" # Load balance vip EX_APISERVER_VIP="_api_server_vip_" # Cluster container-runtime supported: docker, containerd CONTAINER_RUNTIME="_runtime_" # Network plugins supported: calico, flannel, kube-router, cilium, kube-ovn CLUSTER_NETWORK="_network_plugin_" # Service proxy mode of kube-proxy: 'iptables' or 'ipvs' PROXY_MODE="ipvs" # K8S Service CIDR, not overlap with node(host) networking SERVICE_CIDR="_service_cidr_" #"10.68.0.0/16" # Cluster CIDR (Pod CIDR), not overlap with node(host) networking CLUSTER_CIDR="_pod_cidr_" #"172.20.0.0/16" # NodePort Range NODE_PORT_RANGE="20000-40000" #NODE_PORT_RANGE="30000-32767" # Cluster DNS Domain CLUSTER_DNS_DOMAIN="_cluster_dns_" #"cluster.local." # -------- Additional Variables (don't change the default value right now) --- # Binaries Directory bin_dir="/opt/kube/bin" # Deploy Directory (kubeasz workspace) base_dir="/etc/kubeasz" # Directory for a specific cluster cluster_dir="{{ base_dir }}/clusters/_cluster_name_" # CA and other components cert/key Directory ca_dir="/etc/kubernetes/ssl" # Password for 'root' of k8s master host master_host_password="changeme" # Device name of nodes for glusterfs #glusterfs_device_name="/dev/sdc" glusterfs_device_name="_glusterfs_device_name_" # glusterfs server host(s) [glusterfs] #10.0.4.37