54 lines
1.4 KiB
YAML
54 lines
1.4 KiB
YAML
{{- if .Values.ingress.enabled -}}
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: {{ include "qdrant.fullname" . }}
|
|
labels:
|
|
{{- include "qdrant.labels" . | nindent 4 }}
|
|
{{- include "qdrant.additionalLabels" . | nindent 4 }}
|
|
{{- with .Values.ingress.additionalLabels }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- if or .Values.ingress.annotations .Values.additionalAnnotations }}
|
|
annotations:
|
|
{{- with .Values.additionalAnnotations }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- with .Values.ingress.annotations }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
spec:
|
|
{{- if .Values.ingress.ingressClassName }}
|
|
ingressClassName: {{ .Values.ingress.ingressClassName }}
|
|
{{- end }}
|
|
{{- with .Values.ingress.hosts }}
|
|
rules:
|
|
{{- range . }}
|
|
- host: {{ .host | quote }}
|
|
http:
|
|
paths:
|
|
{{- range .paths }}
|
|
- path: {{ .path | quote }}
|
|
pathType: {{ .pathType | default "Prefix" | quote }}
|
|
backend:
|
|
service:
|
|
name: {{ default .serviceName (include "qdrant.fullname" $) }}
|
|
port:
|
|
number: {{ .servicePort }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- if .Values.ingress.tls }}
|
|
tls:
|
|
{{- range .Values.ingress.tls}}
|
|
- hosts:
|
|
{{- range .hosts }}
|
|
- {{ . | quote }}
|
|
{{- end }}
|
|
secretName: {{ .secretName | quote }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|
|
|