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-09-07 23:21:59 +02:00
|
|
|
image: docker.io/grafana/grafana:6.3.5
|
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
|
2019-03-24 01:54:16 +01:00
|
|
|
livenessProbe:
|
|
|
|
httpGet:
|
|
|
|
path: /metrics
|
|
|
|
port: 8080
|
|
|
|
initialDelaySeconds: 10
|
|
|
|
readinessProbe:
|
|
|
|
httpGet:
|
|
|
|
path: /api/health
|
|
|
|
port: 8080
|
|
|
|
initialDelaySeconds: 10
|
2017-11-06 00:23:56 +01:00
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 100m
|
2019-03-20 08:15:08 +01:00
|
|
|
memory: 100Mi
|
2017-11-06 00:23:56 +01:00
|
|
|
limits:
|
|
|
|
cpu: 200m
|
2019-03-20 08:15:08 +01:00
|
|
|
memory: 200Mi
|
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
|
2019-03-14 07:05:14 +01:00
|
|
|
- name: dashboards-etcd
|
|
|
|
mountPath: /etc/grafana/dashboards/etcd
|
2019-07-21 20:02:18 +02:00
|
|
|
- name: dashboards-prom
|
|
|
|
mountPath: /etc/grafana/dashboards/prom
|
2019-03-14 07:05:14 +01:00
|
|
|
- name: dashboards-k8s
|
|
|
|
mountPath: /etc/grafana/dashboards/k8s
|
2019-07-21 20:02:18 +02:00
|
|
|
- name: dashboards-k8s-nodes
|
|
|
|
mountPath: /etc/grafana/dashboards/k8s-nodes
|
2019-04-07 08:27:11 +02:00
|
|
|
- name: dashboards-k8s-resources
|
|
|
|
mountPath: /etc/grafana/dashboards/k8s-resources
|
2019-08-06 07:45:47 +02:00
|
|
|
- name: dashboards-coredns
|
|
|
|
mountPath: /etc/grafana/dashboards/coredns
|
|
|
|
- name: dashboards-nginx-ingress
|
|
|
|
mountPath: /etc/grafana/dashboards/nginx-ingress
|
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
|
2019-03-14 07:05:14 +01:00
|
|
|
- name: dashboards-etcd
|
2018-01-28 07:26:41 +01:00
|
|
|
configMap:
|
2019-03-14 07:05:14 +01:00
|
|
|
name: grafana-dashboards-etcd
|
2019-07-21 20:02:18 +02:00
|
|
|
- name: dashboards-prom
|
|
|
|
configMap:
|
|
|
|
name: grafana-dashboards-prom
|
2019-03-14 07:05:14 +01:00
|
|
|
- name: dashboards-k8s
|
|
|
|
configMap:
|
|
|
|
name: grafana-dashboards-k8s
|
2019-07-21 20:02:18 +02:00
|
|
|
- name: dashboards-k8s-nodes
|
|
|
|
configMap:
|
|
|
|
name: grafana-dashboards-k8s-nodes
|
2019-04-07 08:27:11 +02:00
|
|
|
- name: dashboards-k8s-resources
|
|
|
|
configMap:
|
|
|
|
name: grafana-dashboards-k8s-resources
|
2019-08-06 07:45:47 +02:00
|
|
|
- name: dashboards-coredns
|
|
|
|
configMap:
|
|
|
|
name: grafana-dashboards-coredns
|
|
|
|
- name: dashboards-nginx-ingress
|
|
|
|
configMap:
|
|
|
|
name: grafana-dashboards-nginx-ingress
|
2019-03-14 07:05:14 +01:00
|
|
|
|