Skip to content

Instantly share code, notes, and snippets.

@EngHabu
Created February 4, 2022 01:01
Show Gist options
  • Save EngHabu/0b0ae5c9119df639bd37616504eaf893 to your computer and use it in GitHub Desktop.
Save EngHabu/0b0ae5c9119df639bd37616504eaf893 to your computer and use it in GitHub Desktop.
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: 80
hostPort: 40081
protocol: TCP
- containerPort: 40084
hostPort: 40084
protocol: TCP
- containerPort: 40087
hostPort: 40087
protocol: TCP
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment