Skip to content

Kubernetes

Useful K8s Gateway (istio)

How do I pick an IP for my Gateway to use?

Add This to your kind: Gateway spec

  addresses:
  - value: <ip-i-want-to-use>
    type: IPAddress

Full example:

apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
  name: mygatedway
spec:
  gatewayClassName: istio
  listeners:
  - hostname: "*.mydomain.com"
    name: http
    port: 80
    protocol: HTTP
  addresses:
  - value: 192.168.0.100
    type: IPAddress

Where did I get this info from: GH Discussion