Update ctl init to support env file
This commit is contained in:
@@ -1,44 +1,58 @@
|
||||
# Required
|
||||
KUBERNETES_VERSION=v1.35.3
|
||||
NODE_NAME=monok8s-master
|
||||
APISERVER_ADVERTISE_ADDRESS=192.168.1.50
|
||||
## 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.14/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
|
||||
MKS_KUBERNETES_VERSION=v1.35.3
|
||||
MKS_APISERVER_ADVERTISE_ADDRESS=10.0.0.14
|
||||
|
||||
# Optional but strongly recommended
|
||||
CLUSTER_NAME=monok8s
|
||||
POD_SUBNET=10.244.0.0/16
|
||||
SERVICE_SUBNET=10.96.0.0/12
|
||||
CLUSTER_DOMAIN=cluster.local
|
||||
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
|
||||
|
||||
# Bootstrap mode: init, join
|
||||
BOOTSTRAP_MODE=init
|
||||
MKS_BOOTSTRAP_MODE=init
|
||||
|
||||
# For join mode: worker, control-plane
|
||||
JOIN_KIND=worker
|
||||
API_SERVER_ENDPOINT=
|
||||
BOOTSTRAP_TOKEN=
|
||||
DISCOVERY_TOKEN_CA_CERT_HASH=
|
||||
CONTROL_PLANE_CERT_KEY=
|
||||
MKS_JOIN_KIND=worker
|
||||
MKS_API_SERVER_ENDPOINT=
|
||||
MKS_BOOTSTRAP_TOKEN=
|
||||
MKS_DISCOVERY_TOKEN_CA_CERT_HASH=
|
||||
MKS_CONTROL_PLANE_CERT_KEY=
|
||||
|
||||
# none: Install manually
|
||||
# bridge: CRIO's default bridge CNI
|
||||
CNI_PLUGIN=none
|
||||
# none: install manually
|
||||
# default|bridge: CRI-O default bridge CNI
|
||||
MKS_CNI_PLUGIN=none
|
||||
|
||||
# Node registration metadata
|
||||
NODE_LABELS=topology.kubernetes.io/zone=lab,node.kubernetes.io/instance-type=mono-gateway
|
||||
NODE_ANNOTATIONS=mono.si/board=ls1046a,mono.si/image-version=dev
|
||||
# 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,mono.si/image-version=dev
|
||||
|
||||
# Optional
|
||||
# Extra API server SANs, comma-separated
|
||||
SANS=127.0.0.1,localhost,monok8s-master
|
||||
|
||||
# Single-node mode: allow workloads on the control plane
|
||||
ALLOW_SCHEDULING_ON_CONTROL_PLANE=yes
|
||||
MKS_SANS=127.0.0.1,localhost,monok8s-master,10.0.0.14
|
||||
|
||||
# CRI-O socket
|
||||
CONTAINER_RUNTIME_ENDPOINT=unix:///var/run/crio/crio.sock
|
||||
MKS_CONTAINER_RUNTIME_ENDPOINT=unix:///var/run/crio/crio.sock
|
||||
|
||||
# Usually leave this alone
|
||||
KUBECONFIG_USER_HOME=/root
|
||||
# Optional
|
||||
MKS_ALLOW_SCHEDULING_ON_CONTROL_PLANE=true
|
||||
|
||||
# Emergency override only
|
||||
SKIP_IMAGE_CHECK=no
|
||||
MKS_SKIP_IMAGE_CHECK=no
|
||||
Reference in New Issue
Block a user