cka-SVV/https-routing.yaml
sandervanvugt 6fc66b67ca message
2025-01-10 14:40:29 +01:00

21 lines
479 B
YAML

# backendrefs is for upstream: traffic between the rout and the service
# Terminate is what we need to terminate the session on the gateway
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: example-https-route
spec:
parentRefs:
- name: example-gateway
hostnames:
- "whatever.com"
rules:
- backendRefs:
- name: nginxgw
port: 443
- filters:
- type: RequestRedirect
requestRedirect:
scheme: https
port: 443