Skip to content

Instantly share code, notes, and snippets.

@ThorstenHans
Created September 24, 2021 05:57
Show Gist options
  • Save ThorstenHans/d3a537f938bbf4129381359503e096cc to your computer and use it in GitHub Desktop.
Save ThorstenHans/d3a537f938bbf4129381359503e096cc to your computer and use it in GitHub Desktop.
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
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