-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmonitor-grafana-deployment.yaml
More file actions
52 lines (52 loc) · 1.42 KB
/
monitor-grafana-deployment.yaml
File metadata and controls
52 lines (52 loc) · 1.42 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{{- if eq .Values.global.grafana_location "on-cluster" }}
apiVersion: apps/v1
kind: Deployment
metadata:
name: drycc-monitor-grafana
labels:
heritage: drycc
annotations:
component.drycc.cc/version: {{ .Values.grafana.image_tag }}
spec:
replicas: 1
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
type: RollingUpdate
selector:
matchLabels:
app: drycc-monitor-grafana
template:
metadata:
labels:
app: drycc-monitor-grafana
spec:
containers:
- name: drycc-monitor-grafana
image: {{.Values.grafana.image_registry}}/{{.Values.grafana.image_org}}/grafana:{{.Values.grafana.image_tag}}
imagePullPolicy: {{.Values.grafana.image_pull_policy}}
{{- if or (.Values.grafana.limits_cpu) (.Values.grafana.limits_memory)}}
resources:
limits:
{{- if (.Values.grafana.limits_cpu) }}
cpu: {{.Values.grafana.limits_cpu}}
{{- end}}
{{- if (.Values.grafana.limits_memory) }}
memory: {{.Values.grafana.limits_memory}}
{{- end}}
{{- end}}
ports:
- containerPort: 3000
name: ui
{{- include "grafana.envs" . | indent 8 }}
{{- if .Values.grafana.persistence.enabled }}
volumeMounts:
- name: grafana-data
mountPath: /var/lib/grafana
volumes:
- name: grafana-data
persistentVolumeClaim:
claimName: drycc-monitor-grafana
{{- end }}
{{- end }}