Files
monok8s/configs/cluster.env.default

62 lines
1.6 KiB
Plaintext

## Host config
MKS_HOSTNAME=monok8s-master
MKS_NODE_NAME=monok8s-master
# RJ45 Ports from left to right (interface name inside the OS)
# - eth1, eth2, eth0
MKS_MGMT_IFACE=eth1
MKS_MGMT_ADDRESS=10.0.0.10/24
MKS_MGMT_GATEWAY=10.0.0.1
# Space-separated real upstream DNS servers.
# Do NOT put the cluster DNS Service IP here.
MKS_DNS_NAMESERVERS="10.0.0.1 1.1.1.1 1.0.0.1"
# Optional. Space-separated.
MKS_DNS_SEARCH_DOMAINS="lan"
## k8s config
# Do not set this yourself, this auto follows the build version
# DEV_ONLY MKS_KUBERNETES_VERSION=v1.35.1
MKS_APISERVER_ADVERTISE_ADDRESS=10.0.0.10
# Optional but strongly recommended
MKS_CLUSTER_NAME=monok8s
MKS_POD_SUBNET=10.244.0.0/16
MKS_SERVICE_SUBNET=10.96.0.0/12
MKS_CLUSTER_DOMAIN=cluster.local
# control-plane, worker
MKS_CLUSTER_ROLE=control-plane
MKS_INIT_CONTROL_PLANE=yes
# OSUpgrade agent
MKS_ENABLE_CONTROL_AGENT=yes
MKS_API_SERVER_ENDPOINT=
MKS_BOOTSTRAP_TOKEN=
MKS_DISCOVERY_TOKEN_CA_CERT_HASH=
MKS_CONTROL_PLANE_CERT_KEY=
# none: install manually
# default|bridge: CRI-O default bridge CNI
MKS_CNI_PLUGIN=default
# Node registration metadata
# Comma-separated key=value pairs
MKS_NODE_LABELS=topology.kubernetes.io/zone=lab,node.kubernetes.io/instance-type=mono-gateway
MKS_NODE_ANNOTATIONS=mono.si/board=ls1046a,monok8s.io/image-version=dev
# Optional
# Extra API server SANs, comma-separated
MKS_SANS=127.0.0.1,localhost,monok8s-master,10.0.0.10
# CRI-O socket
MKS_CONTAINER_RUNTIME_ENDPOINT=unix:///var/run/crio/crio.sock
# Optional
MKS_ALLOW_SCHEDULING_ON_CONTROL_PLANE=true
# Emergency override only
MKS_SKIP_IMAGE_CHECK=no