mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-28 23:48:31 +00:00
Add ingress support
This commit is contained in:
parent
46718f2c0c
commit
8491d3c5ba
31
kubernetes/templates/ingress.yaml
Normal file
31
kubernetes/templates/ingress.yaml
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
{{- 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 }}
|
@ -18,6 +18,18 @@ service:
|
|||||||
port: 3000
|
port: 3000
|
||||||
#loadBalancerIP:
|
#loadBalancerIP:
|
||||||
|
|
||||||
|
ingress:
|
||||||
|
enabled: true
|
||||||
|
annotations: {}
|
||||||
|
ingressClassName:
|
||||||
|
hosts:
|
||||||
|
- host: invidious.mydomain.local
|
||||||
|
path: /
|
||||||
|
tls:
|
||||||
|
- host: invidious.mydomain.local
|
||||||
|
secretName: my-tls
|
||||||
|
|
||||||
|
|
||||||
resources: {}
|
resources: {}
|
||||||
#requests:
|
#requests:
|
||||||
# cpu: 100m
|
# cpu: 100m
|
||||||
|
Loading…
Reference in New Issue
Block a user