Created
February 20, 2019 09:40
-
-
Save aojea/3985df067ef959f5c03a386001fd10be to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment