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