...

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

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

     1apiVersion: gateway.networking.k8s.io/v1beta1
     2kind: HTTPRoute
     3metadata:
     4  name: tls-redirect
     5spec:
     6  parentRefs:
     7  - name: example-gateway
     8    sectionName: http
     9  hostnames:
    10  - foo.example.com
    11  - bar.example.com
    12  rules:
    13  - filters:
    14    - type: RequestRedirect
    15      requestRedirect:
    16        scheme: https
    17        port: 443

View as plain text