Skip to content

Instantly share code, notes, and snippets.

@zdk
Last active August 5, 2024 12:59
Show Gist options
  • Save zdk/89edaabf1cafbe3397b9b6a8a089af20 to your computer and use it in GitHub Desktop.
Save zdk/89edaabf1cafbe3397b9b6a8a089af20 to your computer and use it in GitHub Desktop.
kind cluster
cat <<EOF | kind create cluster --name dev --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: 80
protocol: TCP
- containerPort: 443
hostPort: 443
protocol: TCP
- role: worker
- role: worker
- role: worker
EOF
@zdk
Copy link
Author

zdk commented Aug 5, 2024

kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/kind/deploy.yaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment