Skip to content

Instantly share code, notes, and snippets.

@hguerrero
Created February 14, 2025 01:12
Show Gist options
  • Save hguerrero/7b6200a83bd3615b8949f8b9589f65de to your computer and use it in GitHub Desktop.
Save hguerrero/7b6200a83bd3615b8949f8b9589f65de to your computer and use it in GitHub Desktop.
kind extraPortMappings
cat <<EOF | kind create cluster --config=-
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
extraPortMappings:
- containerPort: 80
hostPort: 80
protocol: TCP
- containerPort: 443
hostPort: 443
protocol: TCP
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment