kubeasz/example/hosts.allinone

66 lines
1.7 KiB
Plaintext
Raw Permalink Normal View History

# 'etcd' cluster should have odd member(s) (1,3,5,...)
2018-11-27 16:00:45 +08:00
[etcd]
2021-01-07 09:30:50 +08:00
192.168.1.1
2018-11-27 16:00:45 +08:00
# master node(s)
[kube_master]
2018-11-27 16:00:45 +08:00
192.168.1.1
# work node(s)
[kube_node]
2018-11-27 16:00:45 +08:00
192.168.1.1
# [optional] harbor server, a private docker registry
2021-02-08 21:23:00 +08:00
# 'NEW_INSTALL': 'true' to install a harbor server; 'false' to integrate with existed one
2018-11-27 16:00:45 +08:00
[harbor]
2021-02-08 21:23:00 +08:00
#192.168.1.8 NEW_INSTALL=false
2018-11-27 16:00:45 +08:00
# [optional] loadbalance for accessing k8s from outside
[ex_lb]
2019-05-30 21:37:01 +08:00
#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
2019-05-30 21:37:01 +08:00
# [optional] ntp server for the cluster
[chrony]
#192.168.1.1
2019-02-07 15:10:49 +08:00
2018-11-27 16:00:45 +08:00
[all:vars]
# --------- Main Variables ---------------
# Secure port for apiservers
SECURE_PORT="6443"
2019-05-18 16:48:58 +08:00
# Cluster container-runtime supported: docker, containerd
2022-05-30 11:08:15 +08:00
# if k8s version >= 1.24, docker is not supported
2022-01-05 12:43:03 +08:00
CONTAINER_RUNTIME="containerd"
2019-05-18 16:48:58 +08:00
2019-05-23 23:07:56 +08:00
# Network plugins supported: calico, flannel, kube-router, cilium, kube-ovn
2022-01-05 12:46:32 +08:00
CLUSTER_NETWORK="calico"
2018-11-27 16:00:45 +08:00
# Service proxy mode of kube-proxy: 'iptables' or 'ipvs'
PROXY_MODE="ipvs"
2018-11-27 16:00:45 +08:00
# K8S Service CIDR, not overlap with node(host) networking
SERVICE_CIDR="10.68.0.0/16"
# Cluster CIDR (Pod CIDR), not overlap with node(host) networking
CLUSTER_CIDR="172.20.0.0/16"
# NodePort Range
2021-01-12 17:17:27 +08:00
NODE_PORT_RANGE="30000-32767"
2018-11-27 16:00:45 +08:00
# Cluster DNS Domain
2021-02-04 22:00:22 +08:00
CLUSTER_DNS_DOMAIN="cluster.local"
2018-11-27 16:00:45 +08:00
2019-06-09 15:20:09 +08:00
# -------- Additional Variables (don't change the default value right now)---
2018-11-27 16:00:45 +08:00
# Binaries Directory
bin_dir="/opt/kube/bin"
2019-06-09 15:20:09 +08:00
# Deploy Directory (kubeasz workspace)
2020-12-25 11:53:00 +08:00
base_dir="/etc/kubeasz"
# Directory for a specific cluster
cluster_dir="{{ base_dir }}/clusters/_cluster_name_"
# CA and other components cert/key Directory
2020-12-30 11:25:54 +08:00
ca_dir="/etc/kubernetes/ssl"