# Istio VirtualService exposing a TerdutServer through an Istio Gateway # you already have (Istio's own Gateway CRD, not Gateway API's -- not # something this operator creates or watches, see ../networking/README.md). # Replace terdut-operator-demo and the gateway reference/hostname with your # own; terdut-operator-demo matches ../demo/01-server.yaml, if you're # layering this onto that demo. apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: terdut-operator-demo namespace: terdut-operator-demo spec: hosts: - terdut-operator-demo.example # matches networking.hostname on the CR gateways: - my-gateway-namespace/my-gateway # an existing istio Gateway http: - route: - destination: host: terdut-operator-demo.terdut-operator-demo.svc.cluster.local port: number: 8080 # the Service's port -- same name as the # TerdutServer CR, default servicePort