66 lines
2.3 KiB
Plaintext
66 lines
2.3 KiB
Plaintext
![]() |
taskserv = Kubernetes {
|
||
|
major_version = "1.30"
|
||
|
version = "1.30.3"
|
||
|
#cri = "containerd"
|
||
|
cri = "crio"
|
||
|
runtime_default = "crun"
|
||
|
runtimes = "crun,runc,youki"
|
||
|
cni = "cilium"
|
||
|
cni_version = "v0.16.11"
|
||
|
#bind_port = 6443
|
||
|
#timeout_cp = "4m0s"
|
||
|
#certs_dir = "/etc/kubernetes/pki"
|
||
|
#auth_mode = "Node,RBAC"
|
||
|
#taints_effect = "PreferNoSchedule"
|
||
|
#pull_policy = "IfNotPresent"
|
||
|
# Kubernetes addons separated with commans
|
||
|
addons = "istio"
|
||
|
# External IPs separated with commans for ingress
|
||
|
external_ips = [ "10.11.2.20", "$pub_ip" ]
|
||
|
# tpl = "kubeadm-config.yaml.j2"
|
||
|
# repo = "registry.k8s.io"
|
||
|
# dns_domain = "cluster.local"
|
||
|
# pod_net = "10.244.0.0/16"
|
||
|
# service_net = "10.96.0.0/12"
|
||
|
# cert_sans = [ "$hostname", "$cluster_name", "127.0.0.1" ]
|
||
|
# Cluster name
|
||
|
cluster_name = "wuji"
|
||
|
hostname = "$hostname"
|
||
|
# ControlPanel IP
|
||
|
cp_ip = "10.11.2.20"
|
||
|
cp_name = "wuji-cp-0"
|
||
|
# If HOSTNAME == K8S_MASTER it will be MASTER_0
|
||
|
# othewise set HOSTNAME value to be resolved in same K8S_MASTER network
|
||
|
# By using -cp- as part of HOSTNAME will be consider node as controlpanel
|
||
|
# Other options = "-wk-0" or "-wkr-0" for worker nodes
|
||
|
ip = "$network_private_ip"
|
||
|
# K8s cluster role = "controlpnlane or worker"
|
||
|
mode = "controlplane"
|
||
|
# K8s command task
|
||
|
cmd_task = "install"
|
||
|
admin_user = "devadm"
|
||
|
target_path = "HOME/wuji_kubeconfig"
|
||
|
taint_node = True
|
||
|
etcd_mode = "external"
|
||
|
etcd_prefix = "$cluster_name"
|
||
|
etcd_endpoints = [
|
||
|
ETCD_endpoint { name = "sgoyol" },
|
||
|
# ETCD_endpoint { addr = "10.11.2.11" },
|
||
|
# ETCD_endpoint { addr = "10.11.2.12" },
|
||
|
# ETCD_endpoint { addr = "10.11.2.13" },
|
||
|
]
|
||
|
#etcd_ca_path = "/etc/kubernetes/pki/etcd/ca.crt"
|
||
|
#etcd_cert_path = "/etc/kubernetes/pki/etcd/server.crt"
|
||
|
#etcd_key_path = "/etc/kubernetes/pki/etcd/server.key"
|
||
|
# etcd certs path
|
||
|
prov_etcd_path = "etcdcerts"
|
||
|
etcd_cluster_name = "sgoyol"
|
||
|
etcd_peers = "sgoyol-0"
|
||
|
# install etcd certs path
|
||
|
#etcd_certs_path = "etcdcerts"
|
||
|
# LOG path for kubeadm
|
||
|
install_log_path = "/tmp/k8s.log"
|
||
|
# Work path for config generated file
|
||
|
work_path = "$cluster_name"
|
||
|
}
|