Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # this config file contains all config fields with comments
- kind: Config
- apiVersion: kind.sigs.k8s.io/v1alpha2
- # 1 control plane node and 3 workers
- nodes:
- # the control plane node config
- - role: control-plane
- # patch the generated kubeadm config with some extra settings
- kubeadmConfigPatches:
- - |
- apiVersion: kubeadm.k8s.io/v1beta1
- kind: ClusterConfiguration
- metadata:
- name: config
- networking:
- serviceSubnet: 10.254.0.0/16
- # patch it further using a JSON 6902 patch
- kubeadmConfigPatchesJson6902:
- - group: kubeadm.k8s.io
- version: v1beta1
- kind: ClusterConfiguration
- patch: |
- - op: add
- path: /apiServer/certSANs/-
- value: my-hostname
- # the three workers
- - role: worker
- # replicas specifes the number of nodes to create with this configuration
- replicas: 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement