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