helm-charts/element-call/templates/ingress.yaml

47 lines
1.2 KiB
YAML
Raw Normal View History

2024-07-23 13:57:31 +02:00
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "element-call.fullname" . -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ $fullName }}
labels:
{{- include "element-call.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- with .Values.ingress.className }}
ingressClassName: {{ . }}
{{- end }}
{{- with .Values.ingress.tls }}
tls:
{{- toYaml . | nindent 4 }}
{{- end }}
rules:
- host: {{ .Values.service.call.ingress.host | quote }}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: {{ $fullName }}
port:
name: http
{{- if .Values.service.lkJWT.enabled }}
{{- if (eq .Values.service.lkJWT.ingress.host .Values.service.call.ingress.host)}}
2024-07-23 13:57:31 +02:00
- host: {{ .Values.service.lkJWT.ingress.host | quote }}
http:
paths:
{{- end }}
2024-07-23 13:57:31 +02:00
- path: /sfu/get
2024-07-23 15:19:32 +02:00
pathType: Exact
2024-07-23 13:57:31 +02:00
backend:
service:
name: {{ $fullName }}-lk-jwt
port:
name: http
{{- end }}
2024-07-23 13:57:31 +02:00
{{- end }}