47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
# this config file contains all config fields with comments
|
|
# NOTE: this is not a particularly useful config file
|
|
kind: Cluster
|
|
apiVersion: kind.x-k8s.io/v1alpha4
|
|
# Public Registry related config
|
|
containerdConfigPatches:
|
|
- |-
|
|
[plugins."io.containerd.grpc.v1.cri".registry]
|
|
config_path = "/etc/containerd/certs.d"
|
|
# patch the generated kubeadm config with some extra settings
|
|
kubeadmConfigPatches:
|
|
- |
|
|
apiVersion: kubelet.config.k8s.io/v1beta1
|
|
kind: KubeletConfiguration
|
|
evictionHard:
|
|
nodefs.available: "0%"
|
|
# patch it further using a JSON 6902 patch
|
|
kubeadmConfigPatchesJSON6902:
|
|
- group: kubeadm.k8s.io
|
|
version: v1beta3
|
|
kind: ClusterConfiguration
|
|
patch: |
|
|
- op: add
|
|
path: /apiServer/certSANs/-
|
|
value: my-hostname
|
|
# 1 control plane node and 3 workers
|
|
nodes:
|
|
# the control plane node config
|
|
- role: control-plane
|
|
kubeadmConfigPatches:
|
|
- |
|
|
kind: InitConfiguration
|
|
nodeRegistration:
|
|
kubeletExtraArgs:
|
|
node-labels: "ingress-ready=true"
|
|
extraPortMappings:
|
|
- containerPort: 80
|
|
hostPort: 80
|
|
protocol: TCP
|
|
- containerPort: 443
|
|
hostPort: 443
|
|
protocol: TCP
|
|
# the three workers
|
|
- role: worker
|
|
- role: worker
|
|
- role: worker
|