-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmonitor-grafana-ingress.yaml
More file actions
33 lines (33 loc) · 1.01 KB
/
monitor-grafana-ingress.yaml
File metadata and controls
33 lines (33 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: "drycc-monitor-grafana"
labels:
app: "drycc-monitor-grafana"
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
annotations:
kubernetes.io/tls-acme: "true"
{{- if not (eq .Values.global.ingress_class "") }}
kubernetes.io/ingress.class: "{{ .Values.global.ingress_class }}"
{{ end }}
spec:
rules:
- host: drycc-monitor-grafana.{{ .Values.global.platform_domain }}
http:
paths:
{{- if eq .Values.global.ingress_class "gce" "alb" }}
- path: /*
{{- else }}{{/* Has annotations but ingress class is not "gce" nor "alb" */}}
- path: /
{{- end }}
backend:
serviceName: drycc-monitor-grafana
servicePort: 80
{{ if .Values.global.cert_manager_enabled }}
tls:
- secretName: drycc-monitor-grafana-auto-tls
hosts:
- drycc-monitor-grafana.{{ .Values.global.platform_domain }}
{{- end }}