2018-02-11 08:51:55 +01:00
|
|
|
apiVersion: apps/v1
|
2017-11-06 00:23:56 +01:00
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: grafana
|
|
|
|
namespace: monitoring
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
strategy:
|
|
|
|
type: RollingUpdate
|
|
|
|
rollingUpdate:
|
|
|
|
maxUnavailable: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
name: grafana
|
|
|
|
phase: prod
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
name: grafana
|
|
|
|
phase: prod
|
2018-10-16 08:24:27 +02:00
|
|
|
annotations:
|
|
|
|
seccomp.security.alpha.kubernetes.io/pod: 'docker/default'
|
2017-11-06 00:23:56 +01:00
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: grafana
|
2019-02-23 21:49:09 +01:00
|
|
|
image: grafana/grafana:6.0.0-beta3
|
2017-11-06 00:23:56 +01:00
|
|
|
env:
|
2019-02-17 21:36:40 +01:00
|
|
|
- name: GF_PATHS_CONFIG
|
|
|
|
value: "/etc/grafana/custom.ini"
|
2017-11-06 00:23:56 +01:00
|
|
|
ports:
|
|
|
|
- name: http
|
|
|
|
containerPort: 8080
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
memory: 100Mi
|
|
|
|
cpu: 100m
|
|
|
|
limits:
|
|
|
|
memory: 200Mi
|
|
|
|
cpu: 200m
|
2018-01-28 07:26:41 +01:00
|
|
|
volumeMounts:
|
2019-02-17 21:36:40 +01:00
|
|
|
- name: config
|
|
|
|
mountPath: /etc/grafana
|
2018-03-29 04:12:39 +02:00
|
|
|
- name: datasources
|
|
|
|
mountPath: /etc/grafana/provisioning/datasources
|
2019-02-17 21:36:40 +01:00
|
|
|
- name: providers
|
2018-03-29 04:12:39 +02:00
|
|
|
mountPath: /etc/grafana/provisioning/dashboards
|
|
|
|
- name: dashboards
|
2019-02-17 21:36:40 +01:00
|
|
|
mountPath: /etc/grafana/dashboards
|
2017-11-06 00:23:56 +01:00
|
|
|
volumes:
|
2019-02-17 21:36:40 +01:00
|
|
|
- name: config
|
|
|
|
configMap:
|
|
|
|
name: grafana-config
|
2018-03-29 04:12:39 +02:00
|
|
|
- name: datasources
|
|
|
|
configMap:
|
|
|
|
name: grafana-datasources
|
2019-02-17 21:36:40 +01:00
|
|
|
- name: providers
|
2018-03-29 04:12:39 +02:00
|
|
|
configMap:
|
2019-02-17 21:36:40 +01:00
|
|
|
name: grafana-providers
|
2018-01-28 07:26:41 +01:00
|
|
|
- name: dashboards
|
|
|
|
configMap:
|
|
|
|
name: grafana-dashboards
|