42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
{{- 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
|
|
- host: {{ .Values.service.lkJWT.ingress.host | quote }}
|
|
http:
|
|
paths:
|
|
- path: /sfu/get
|
|
pathType: Exact
|
|
backend:
|
|
service:
|
|
name: {{ $fullName }}-lk-jwt
|
|
port:
|
|
name: http
|
|
{{- end }}
|