Last active
February 9, 2021 12:11
-
-
Save manno/b18ab5e3dbbf9a089ba79f6c99dbe3de 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
#!/bin/bash | |
cat > kind-config.yaml <<EOF | |
kind: Cluster | |
apiVersion: kind.x-k8s.io/v1alpha4 | |
nodes: | |
- role: control-plane | |
# port forward 80 on the host to 80 on this node | |
# extraPortMappings: | |
# - containerPort: 80 | |
# hostPort: 80 | |
- role: worker | |
kubeadmConfigPatches: | |
- | | |
kind: JoinConfiguration | |
nodeRegistration: | |
kubeletExtraArgs: | |
node-labels: "failure-domain.beta.kubernetes.io/zone=z0" | |
- role: worker | |
kubeadmConfigPatches: | |
- | | |
kind: JoinConfiguration | |
nodeRegistration: | |
kubeletExtraArgs: | |
node-labels: "failure-domain.beta.kubernetes.io/zone=z1" | |
#networking: | |
# apiServerAddress: "10.0.0.10" | |
#containerdConfigPatches: | |
# - |- | |
# [plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.io"] | |
# endpoint = ["http://10.0.0.10:5000"] | |
EOF | |
kind create cluster --image kindest/node:v1.18.8 --config kind-config.yaml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment