Newer
Older
{{- if .Values.onlyoffice.ingress.enabled -}}
{{- $fullName := include "onlyoffice-documentserver.fullname" . -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ $fullName }}
labels:
app.kubernetes.io/name: {{ include "onlyoffice-documentserver.name" . }}
helm.sh/chart: {{ include "onlyoffice-documentserver.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- with .Values.onlyoffice.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.onlyoffice.ingress.tls }}
{{- range .Values.onlyoffice.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ . | quote }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
rules:
{{- range .Values.onlyoffice.ingress.hosts }}
- host: {{ . | quote }}
http:
paths:
service:
name: {{ $fullName }}
port:
name: http
pathType: Prefix
- path: "/spellchecker"
backend:
service:
name: {{ $fullName }}
port:
name: spellchecker
pathType: Prefix