1 {{- if .Values.ingress.enabled -}}
2 {{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
3 apiVersion: networking.k8s.io/v1
5 apiVersion: networking.k8s.io/v1beta1
9 name: {{ include "influxdb.fullname" . }}
11 {{- include "influxdb.labels" . | nindent 4 }}
13 {{ toYaml .Values.ingress.annotations | indent 4 }}
15 {{- if .Values.ingress.tls }}
18 - {{ .Values.ingress.hostname | quote }}
19 {{- if .Values.ingress.secretName }}
20 secretName: {{ .Values.ingress.secretName }}
23 {{- if .Values.ingress.className }}
24 ingressClassName: {{ .Values.ingress.className }}
27 - host: {{ .Values.ingress.hostname }}
30 - path: {{ .Values.ingress.path }}
31 {{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
35 {{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
37 name: {{ include "influxdb.fullname" . }}
39 name: {{ .Values.service.portName }}
41 serviceName: {{ include "influxdb.fullname" . }}
42 servicePort: {{ .Values.service.portName }}