Created
January 4, 2021 11:56
-
-
Save RafPe/7aaae6a0e468158820c80ee70eca4703 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
cat <<EOF | kind create cluster --config=- | |
kind: Cluster | |
apiVersion: kind.x-k8s.io/v1alpha4 | |
nodes: | |
- role: control-plane | |
kubeadmConfigPatches: | |
- | | |
kind: InitConfiguration | |
nodeRegistration: | |
kubeletExtraArgs: | |
node-labels: "ingress-ready=true" | |
extraPortMappings: | |
- containerPort: 30080 | |
hostPort: 88 | |
protocol: TCP | |
- containerPort: 30443 | |
hostPort: 444 | |
protocol: TCP | |
- role: worker | |
kubeadmConfigPatches: | |
- | | |
kind: JoinConfiguration | |
nodeRegistration: | |
kubeletExtraArgs: | |
node-labels: "zone=alpha,region=eu-west-1" | |
- role: worker | |
kubeadmConfigPatches: | |
- | | |
kind: JoinConfiguration | |
nodeRegistration: | |
kubeletExtraArgs: | |
node-labels: "zone=alpha,region=eu-west-1" | |
- role: worker | |
kubeadmConfigPatches: | |
- | | |
kind: JoinConfiguration | |
nodeRegistration: | |
kubeletExtraArgs: | |
node-labels: "zone=beta,region=eu-west-1" | |
- role: worker | |
kubeadmConfigPatches: | |
- | | |
kind: JoinConfiguration | |
nodeRegistration: | |
kubeletExtraArgs: | |
node-labels: "zone=beta,region=eu-west-1" | |
- role: worker | |
kubeadmConfigPatches: | |
- | | |
kind: JoinConfiguration | |
nodeRegistration: | |
kubeletExtraArgs: | |
node-labels: "zone=gamma,region=eu-central-1" | |
- role: worker | |
kubeadmConfigPatches: | |
- | | |
kind: JoinConfiguration | |
nodeRegistration: | |
kubeletExtraArgs: | |
node-labels: "zone=gamma,region=eu-central-1" | |
- role: worker | |
kubeadmConfigPatches: | |
- | | |
kind: JoinConfiguration | |
nodeRegistration: | |
kubeletExtraArgs: | |
node-labels: "zone=gamma,region=eu-central-1" | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment