k8s-platform/charts/openproject/templates/httproute.yaml

24 lines
537 B
YAML

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