mirror of
https://github.com/devitq/homelab.git
synced 2026-11-20 23:07:39 +00:00
23 lines
477 B
YAML
23 lines
477 B
YAML
apiVersion: gateway.networking.k8s.io/v1
|
|
kind: HTTPRoute
|
|
metadata:
|
|
name: global-http-redirect
|
|
namespace: gateway-system
|
|
spec:
|
|
parentRefs:
|
|
- name: shared-gateway
|
|
namespace: gateway-system
|
|
sectionName: http-redirect
|
|
|
|
rules:
|
|
- matches:
|
|
- path:
|
|
type: PathPrefix
|
|
value: /
|
|
filters:
|
|
- type: RequestRedirect
|
|
requestRedirect:
|
|
scheme: https
|
|
statusCode: 301
|
|
port: 443
|