Skip to content

Instantly share code, notes, and snippets.

@digital-shokunin
Created January 19, 2022 19:06
Show Gist options
  • Save digital-shokunin/04d894fc99f767cb98ec3dd76ad757a1 to your computer and use it in GitHub Desktop.
Save digital-shokunin/04d894fc99f767cb98ec3dd76ad757a1 to your computer and use it in GitHub Desktop.
# Lab cluster setup
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
name: lab
# 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: v1beta2
kind: ClusterConfiguration
patch: |
- op: add
path: /apiServer/certSANs/-
value: my-hostname
# 1 control plane node and 3 workers
nodes:
# All nodes need 1.23 version of image instead of older default
# the control plane node config
- role: control-plane
image: kindest/node:v1.23.0
# the three workers
- role: worker
image: kindest/node:v1.23.0
- role: worker
image: kindest/node:v1.23.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment