--- apiVersion: gateway.networking.k8s.io/v1 kind: HTTPRoute metadata: name: paperclip-http-redirect namespace: paperclip spec: hostnames: - paperclip.k8s.syd1.au.unkin.net parentRefs: - name: paperclip 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: paperclip namespace: paperclip spec: hostnames: - paperclip.k8s.syd1.au.unkin.net parentRefs: - name: paperclip sectionName: https rules: - backendRefs: - name: paperclip port: 3100 matches: - path: type: PathPrefix value: /