Skip to content

Instantly share code, notes, and snippets.

@olivernadj
Last active February 25, 2022 15:31
Show Gist options
  • Save olivernadj/674ec3e34edec2c91754d548d3b59809 to your computer and use it in GitHub Desktop.
Save olivernadj/674ec3e34edec2c91754d548d3b59809 to your computer and use it in GitHub Desktop.
Ingress ready kind cluster
#!/usr/bin/env bash
cat <<EOF | kind create cluster --config=-
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
name: certman
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
EOF
# 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