Skip to content

Instantly share code, notes, and snippets.

@s4l1h
Last active March 28, 2024 17:13
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save s4l1h/83145e1e8ba9445809fc96effda91c21 to your computer and use it in GitHub Desktop.
Save s4l1h/83145e1e8ba9445809fc96effda91c21 to your computer and use it in GitHub Desktop.
Kind and Istio ingress controller.
kind create cluster --config=./kind.yaml
kubectl patch deployments.apps -n istio-system istio-ingressgateway -p '{"spec":{"template":{"spec":{"containers":[{"name":"istio-proxy","ports":[{"containerPort":8080,"hostPort":80},{"containerPort":8443,"hostPort":443}]}]}}}}'
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment