bc0a341318fdcca270c8d69e79ecb2a90906b2e8
[ric-plt/ric-dep.git] / helm / 3rdparty / influxdb / templates / ingress.yaml
1 {{- if .Values.ingress.enabled -}}
2 apiVersion: networking.k8s.io/v1beta1
3 kind: Ingress
4 metadata:
5   name: {{ include "influxdb.fullname" . }}
6   labels:
7     {{- include "influxdb.labels" . | nindent 4 }}
8   annotations:
9 {{ toYaml .Values.ingress.annotations | indent 4 }}
10 spec:
11 {{- if .Values.ingress.tls }}
12   tls:
13     - hosts:
14       - {{ .Values.ingress.hostname | quote }}
15       secretName: {{ .Values.ingress.secretName }}
16 {{- end }}
17 {{- if .Values.ingress.className }}
18   ingressClassName: {{ .Values.ingress.className }}
19 {{- end }}
20   rules:
21   - host: {{ .Values.ingress.hostname }}
22     http:
23       paths:
24       - path: {{ .Values.ingress.path }}
25         backend:
26           serviceName: {{ include "influxdb.fullname" . }}
27           servicePort: 8086
28 {{- end -}}