blob: 6695da09c612c59d6bc6af677da31137e13929cf [file] [log] [blame]
gioc9161872024-04-21 10:46:35 +04001{{- if .Values.ingress.enabled -}}
2---
3apiVersion: {{ include "common.capabilities.ingress.apiVersion" . }}
4kind: Ingress
5metadata:
6 name: {{ include "common.names.fullname" . }}
7 labels:
8 {{- include "common.labels.standard" . | nindent 4 }}
9 {{- with .Values.ingress.annotations }}
10 annotations:
11 {{- toYaml . | nindent 4 }}
12 {{- end }}
13spec:
14 {{- if .Values.ingress.ingressClassName }}
15 ingressClassName: {{ .Values.ingress.ingressClassName }}
16 {{- end }}
17 {{- if .Values.ingress.tls.enabled }}
18 tls:
19 - hosts:
20 - {{ .Values.ingress.host | quote }}
21 secretName: "{{ .Values.ingress.tls.secretName }}"
22 {{- end }}
23 rules:
24 - host: {{ .Values.ingress.host | quote }}
25 http:
26 paths:
27 - path: {{ .Values.ingress.path }}
28 {{- if eq "true" (include "common.ingress.supportsPathType" .) }}
29 pathType: {{ .Values.ingress.pathType }}
30 {{- end }}
31 backend: {{- include "common.ingress.backend" (dict "serviceName" (include "common.names.fullname" $) "servicePort" "http" "context" $) | nindent 14 }}
32...
33{{- end }}