Created
February 13, 2020 19:12
-
-
Save karlkfi/98c607103a0e162c1fc39356b3c3c764 to your computer and use it in GitHub Desktop.
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
--- | |
apiVersion: kind.x-k8s.io/v1alpha4 | |
kind: Cluster | |
networking: | |
# expose to private network | |
apiServerAddress: "0.0.0.0" | |
# fixed port so Vault auth backend can find the API | |
apiServerPort: 32769 | |
kubeadmConfigPatchesJSON6902: | |
- group: kubeadm.k8s.io | |
kind: ClusterConfiguration | |
# patch kubeadm config to add hostname as a SAN to the API server cert | |
patch: | | |
- op: add | |
path: /apiServer/certSANs/- | |
value: my-hostname | |
nodes: | |
- role: control-plane | |
# mount docker config that can pull from private GCR | |
extraMounts: | |
- containerPath: /var/lib/kubelet/config.json | |
hostPath: /var/lib/kind/docker-config.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment