mirror of
https://github.com/iv-org/invidious.git
synced 2025-10-26 10:48:28 -05:00
32 lines
881 B
YAML
32 lines
881 B
YAML
{{- if .Values.ingress.enabled }}
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: {{ template "invidious.fullname" . }}
|
|
labels:
|
|
app: {{ template "invidious.name" . }}
|
|
chart: {{ .Chart.Name }}
|
|
release: {{ .Release.Name }}
|
|
annotations: {{- toYaml .Values.ingress.annotations | nindent 4 }}
|
|
spec:
|
|
{{- if .Values.ingress.ingressClassName }}
|
|
ingressClassName: {{ .Values.ingress.ingressClassName }}
|
|
{{- end }}
|
|
rules:
|
|
{{- range .Values.ingress.hosts }}
|
|
- host: {{ .host }}
|
|
http:
|
|
paths:
|
|
- pathType: Prefix
|
|
path: {{ .path | default "/" }}
|
|
backend:
|
|
service:
|
|
name: {{ template "invidious.fullname" $ }}
|
|
port:
|
|
number: {{ $.Values.service.port }}
|
|
{{- end }}
|
|
{{- if .Values.ingress.tls }}
|
|
tls: {{ toYaml .Values.ingress.tls | nindent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|