1 {{- if .Values.ingress.enabled -}}
2 apiVersion: networking.k8s.io/v1beta1
5 name: {{ include "influxdb.fullname" . }}
7 {{- include "influxdb.labels" . | nindent 4 }}
9 {{ toYaml .Values.ingress.annotations | indent 4 }}
11 {{- if .Values.ingress.tls }}
14 - {{ .Values.ingress.hostname | quote }}
15 secretName: {{ .Values.ingress.secretName }}
17 {{- if .Values.ingress.className }}
18 ingressClassName: {{ .Values.ingress.className }}
21 - host: {{ .Values.ingress.hostname }}
24 - path: {{ .Values.ingress.path }}
26 serviceName: {{ include "influxdb.fullname" . }}