# Gateway API HTTPRoute exposing a TerdutServer through a Gateway you # already have (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: gateway.networking.k8s.io/v1 kind: HTTPRoute metadata: name: terdut-operator-demo namespace: terdut-operator-demo spec: parentRefs: - name: my-gateway # an existing Gateway in this namespace (or # namespace: gateway-ns # a different one, if the Gateway allows it) sectionName: https # the listener to attach to, if it's picky hostnames: - terdut-operator-demo.example # matches networking.hostname on the CR rules: - backendRefs: - name: terdut-operator-demo # the Service the operator created -- port: 8080 # same name as the TerdutServer CR