...

Text file src/sigs.k8s.io/gateway-api/examples/standard/simple-http-https/bar-route.yaml

Documentation: sigs.k8s.io/gateway-api/examples/standard/simple-http-https

     1apiVersion: gateway.networking.k8s.io/v1beta1
     2kind: HTTPRoute
     3metadata:
     4  name: bar 
     5spec:
     6  parentRefs:
     7  - name: example-gateway
     8    sectionName: https
     9  hostnames:
    10  - bar.example.com
    11  rules:
    12  - matches:
    13    - path:
    14        type: PathPrefix
    15        value: /
    16    backendRefs:
    17    - name: bar-app 
    18      port: 80

View as plain text