--- apiVersion: gateway.networking.k8s.io/v1 kind: HTTPRoute metadata: name: watchstate-external-http-redirect namespace: watchstate spec: hostnames: - watchstate.unkin.net parentRefs: - group: gateway.networking.k8s.io kind: Gateway name: watchstate-external sectionName: http rules: - filters: - type: RequestRedirect requestRedirect: scheme: https statusCode: 301 matches: - path: type: PathPrefix value: / --- apiVersion: gateway.networking.k8s.io/v1 kind: HTTPRoute metadata: name: watchstate-external namespace: watchstate spec: hostnames: - watchstate.unkin.net parentRefs: - group: gateway.networking.k8s.io kind: Gateway name: watchstate-external sectionName: https rules: - backendRefs: - group: "" kind: Service name: watchstate-oauth2 port: 80 weight: 1 matches: - path: type: PathPrefix value: /