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