-
-
Save BenTheElder/194029a852362da53efe6f87b57f2cbf to your computer and use it in GitHub Desktop.
kustomize kubeadm config
This file contains 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
# config generated by kind | |
apiVersion: kubeadm.k8s.io/v1alpha3 | |
kind: ClusterConfiguration | |
kubernetesVersion: v1.12.0 | |
# TODO(bentheelder): fix this upstream! | |
# we need nsswitch.conf so we use /etc/hosts | |
# https://github.com/kubernetes/kubernetes/issues/69195 | |
apiServerExtraVolumes: | |
- name: nsswitch | |
mountPath: /etc/nsswitch.conf | |
hostPath: /etc/nsswitch.conf | |
writeable: false | |
pathType: FileOrCreate | |
clusterName: kind-1 | |
# on docker for mac we have to expose the api server via port forward, | |
# so we need to ensure the cert is valid for localhost so we can talk | |
# to the cluster after rewriting the kubeconfig to point to localhost | |
apiServerCertSANs: [localhost] | |
--- | |
apiVersion: kubeadm.k8s.io/v1alpha3 | |
kind: InitConfiguration | |
# we use a random local port for the API server | |
apiEndpoint: | |
bindPort: 6443 |
This file contains 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
resources: | |
- config.yaml | |
patches: | |
- patch.yaml |
This file contains 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
# the patch | |
apiVersion: kubeadm.k8s.io/v1alpha3 | |
kind: ClusterConfiguration | |
networking: | |
serviceSubnet: 10.0.0.0/16 | |
--- | |
apiVersion: kubeadm.k8s.io/v1alpha3 | |
kind: InitConfiguration | |
nodeRegistration: | |
kubeletExtraArgs: | |
"cluster-dns": "10.0.0.10" |
Author
BenTheElder
commented
Oct 24, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment