--- apiVersion: gateway.networking.k8s.io/v1 kind: HTTPRoute metadata: name: repospawner-external-http-redirect namespace: repospawner spec: hostnames: - repospawner.unkin.net parentRefs: - group: gateway.networking.k8s.io kind: Gateway name: repospawner-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: repospawner-external namespace: repospawner spec: hostnames: - repospawner.unkin.net parentRefs: - group: gateway.networking.k8s.io kind: Gateway name: repospawner-external sectionName: https rules: - backendRefs: - group: "" kind: Service name: repospawner-oauth2 port: 4180 weight: 1 matches: - path: type: PathPrefix value: /