k8s/manifests/04-routes/httproute-rancher.yaml

27 lines
503 B
YAML
Raw Normal View History

2023-11-16 19:42:02 +10:00
---
2024-07-21 23:21:48 +10:00
apiVersion: gateway.networking.k8s.io/v1
2023-11-16 19:42:02 +10:00
kind: HTTPRoute
metadata:
2023-11-16 19:52:51 +10:00
name: http-rancher
2023-11-16 19:42:02 +10:00
namespace: default
spec:
hostnames:
- rancher.guaranteedstruggle.host
parentRefs:
- name: my-gateway
namespace: default
rules:
- matches:
- path:
type: PathPrefix
value: /
filters:
- type: RequestHeaderModifier
requestHeaderModifier:
set:
- name: X-Forwarded-Proto
value: https
backendRefs:
- name: myrancher
port: 80