Skip to content

Instantly share code, notes, and snippets.

@arush-sal
Created April 7, 2021 10:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arush-sal/0aa25b87fbdfbca7ff895eb3b309ef95 to your computer and use it in GitHub Desktop.
Save arush-sal/0aa25b87fbdfbca7ff895eb3b309ef95 to your computer and use it in GitHub Desktop.
# 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
# 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:
# the control plane node config
- role: control-plane
# the three workers
- role: worker
- role: worker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment