ingress.yaml 852 Bytes
Newer Older
1
{{- if .Values.ingress.enabled -}}
2
apiVersion: networking.k8s.io/v1beta1
3 4
kind: Ingress
metadata:
5
  name: {{ template "chronograf.fullname" . }}
6
  labels:
7
    app: {{ template "chronograf.fullname" . }}
8 9 10
    chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
    release: "{{ .Release.Name }}"
    heritage: "{{ .Release.Service }}"
11 12 13 14 15
  annotations:
{{ toYaml .Values.ingress.annotations | indent 4 }}
spec:
{{- if .Values.ingress.tls }}
  tls:
16 17
    - hosts:
      - {{ .Values.ingress.hostname | quote }}
18
      secretName: {{ .Values.ingress.secretName | default (printf "%s-tls" (include "chronograf.fullname" .)) }}
19 20 21 22 23
{{- end }}
  rules:
  - host: {{ .Values.ingress.hostname }}
    http:
      paths:
24
      - path: {{ .Values.ingress.path }}
25
        backend:
26
          serviceName: {{ template "chronograf.fullname" . }}
27 28
          servicePort: 80
{{- end -}}