apiVersion: gateway.networking.k8s.io/v1 kind: HTTPRoute metadata: name: {{ .Values.route.name }} namespace: {{ .Values.namespace }} spec: parentRefs: - name: {{ .Values.route.gatewayName }} namespace: {{ .Values.route.gatewayNamespace }} hostnames: {{- range .Values.route.hostnames }} - {{ . | quote }} {{- end }} rules: - matches: - path: type: PathPrefix value: / backendRefs: - name: {{ .Values.service.name }} port: {{ .Values.service.port }}