apiVersion: gateway.networking.k8s.io/v1 kind: HTTPRoute metadata: name: web-http spec: parentRefs: - group: gateway.networking.k8s.io kind: Gateway name: web-gw sectionName: http rules: - filters: - requestRedirect: scheme: https statusCode: 301 type: RequestRedirect matches: - path: type: PathPrefix value: /