Interlegis Public Rancher Charts for Kubernetes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
653 B

apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: {{ .Release.Name }}
namespace: {{ .Values.namespace }}
labels:
app: {{ .Release.Name }}
spec:
parentRefs:
- name: {{ .Values.gateway.name }}
namespace: {{ .Values.gateway.namespace }}
sectionName: {{ .Values.gateway.listener }}
{{- if .Values.route.hostname }}
hostnames:
- {{ .Values.route.hostname | quote }}
{{- end }}
rules:
- matches:
- path:
type: PathPrefix
value: {{ .Values.route.path }}
backendRefs:
- name: {{ .Release.Name }}
namespace: {{ .Values.namespace }}
port: {{ .Values.service.port }}