2019-08-21 17:28:55 +02:00
|
|
|
apiVersion: apps/v1
|
2018-12-12 18:18:00 +01:00
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: grafana
|
|
|
|
name: grafana
|
|
|
|
namespace: monitoring
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: grafana
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: grafana
|
|
|
|
spec:
|
|
|
|
containers:
|
2020-03-18 15:13:47 +01:00
|
|
|
- env: []
|
2020-06-19 14:58:49 +02:00
|
|
|
image: grafana/grafana:7.0.3
|
2018-12-12 18:18:00 +01:00
|
|
|
name: grafana
|
|
|
|
ports:
|
|
|
|
- containerPort: 3000
|
|
|
|
name: http
|
|
|
|
readinessProbe:
|
|
|
|
httpGet:
|
|
|
|
path: /api/health
|
|
|
|
port: http
|
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpu: 200m
|
|
|
|
memory: 200Mi
|
|
|
|
requests:
|
|
|
|
cpu: 100m
|
|
|
|
memory: 100Mi
|
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /var/lib/grafana
|
|
|
|
name: grafana-storage
|
|
|
|
readOnly: false
|
|
|
|
- mountPath: /etc/grafana/provisioning/datasources
|
|
|
|
name: grafana-datasources
|
|
|
|
readOnly: false
|
|
|
|
- mountPath: /etc/grafana/provisioning/dashboards
|
|
|
|
name: grafana-dashboards
|
|
|
|
readOnly: false
|
2019-08-08 22:09:53 +02:00
|
|
|
- mountPath: /grafana-dashboard-definitions/0/apiserver
|
|
|
|
name: grafana-dashboard-apiserver
|
|
|
|
readOnly: false
|
2019-11-17 16:05:27 +01:00
|
|
|
- mountPath: /grafana-dashboard-definitions/0/cluster-total
|
|
|
|
name: grafana-dashboard-cluster-total
|
|
|
|
readOnly: false
|
2019-08-08 22:09:53 +02:00
|
|
|
- mountPath: /grafana-dashboard-definitions/0/controller-manager
|
|
|
|
name: grafana-dashboard-controller-manager
|
|
|
|
readOnly: false
|
2019-02-04 23:54:28 +01:00
|
|
|
- mountPath: /grafana-dashboard-definitions/0/coredns-dashboard
|
|
|
|
name: grafana-dashboard-coredns-dashboard
|
|
|
|
readOnly: false
|
2018-12-12 18:18:00 +01:00
|
|
|
- mountPath: /grafana-dashboard-definitions/0/k8s-resources-cluster
|
|
|
|
name: grafana-dashboard-k8s-resources-cluster
|
|
|
|
readOnly: false
|
|
|
|
- mountPath: /grafana-dashboard-definitions/0/k8s-resources-namespace
|
|
|
|
name: grafana-dashboard-k8s-resources-namespace
|
|
|
|
readOnly: false
|
2019-11-17 16:05:27 +01:00
|
|
|
- mountPath: /grafana-dashboard-definitions/0/k8s-resources-node
|
|
|
|
name: grafana-dashboard-k8s-resources-node
|
|
|
|
readOnly: false
|
2018-12-12 18:18:00 +01:00
|
|
|
- mountPath: /grafana-dashboard-definitions/0/k8s-resources-pod
|
|
|
|
name: grafana-dashboard-k8s-resources-pod
|
|
|
|
readOnly: false
|
2019-04-22 20:17:53 +02:00
|
|
|
- mountPath: /grafana-dashboard-definitions/0/k8s-resources-workload
|
|
|
|
name: grafana-dashboard-k8s-resources-workload
|
|
|
|
readOnly: false
|
|
|
|
- mountPath: /grafana-dashboard-definitions/0/k8s-resources-workloads-namespace
|
|
|
|
name: grafana-dashboard-k8s-resources-workloads-namespace
|
|
|
|
readOnly: false
|
2019-08-08 22:09:53 +02:00
|
|
|
- mountPath: /grafana-dashboard-definitions/0/kubelet
|
|
|
|
name: grafana-dashboard-kubelet
|
|
|
|
readOnly: false
|
2019-02-04 21:03:30 +01:00
|
|
|
- mountPath: /grafana-dashboard-definitions/0/kubernetes-cluster-dashboard
|
|
|
|
name: grafana-dashboard-kubernetes-cluster-dashboard
|
|
|
|
readOnly: false
|
2019-11-17 16:05:27 +01:00
|
|
|
- mountPath: /grafana-dashboard-definitions/0/namespace-by-pod
|
|
|
|
name: grafana-dashboard-namespace-by-pod
|
|
|
|
readOnly: false
|
|
|
|
- mountPath: /grafana-dashboard-definitions/0/namespace-by-workload
|
|
|
|
name: grafana-dashboard-namespace-by-workload
|
|
|
|
readOnly: false
|
2020-08-16 05:47:13 +02:00
|
|
|
- mountPath: /grafana-dashboard-definitions/0/nginx-dashboard
|
|
|
|
name: grafana-dashboard-nginx-dashboard
|
|
|
|
readOnly: false
|
2019-10-09 22:33:29 +02:00
|
|
|
- mountPath: /grafana-dashboard-definitions/0/node-cluster-rsrc-use
|
|
|
|
name: grafana-dashboard-node-cluster-rsrc-use
|
|
|
|
readOnly: false
|
|
|
|
- mountPath: /grafana-dashboard-definitions/0/node-rsrc-use
|
|
|
|
name: grafana-dashboard-node-rsrc-use
|
|
|
|
readOnly: false
|
|
|
|
- mountPath: /grafana-dashboard-definitions/0/nodes
|
|
|
|
name: grafana-dashboard-nodes
|
|
|
|
readOnly: false
|
2018-12-12 18:18:00 +01:00
|
|
|
- mountPath: /grafana-dashboard-definitions/0/persistentvolumesusage
|
|
|
|
name: grafana-dashboard-persistentvolumesusage
|
|
|
|
readOnly: false
|
2019-11-17 16:05:27 +01:00
|
|
|
- mountPath: /grafana-dashboard-definitions/0/pod-total
|
|
|
|
name: grafana-dashboard-pod-total
|
|
|
|
readOnly: false
|
2019-02-04 21:03:30 +01:00
|
|
|
- mountPath: /grafana-dashboard-definitions/0/prometheus-dashboard
|
|
|
|
name: grafana-dashboard-prometheus-dashboard
|
|
|
|
readOnly: false
|
2019-08-08 22:09:53 +02:00
|
|
|
- mountPath: /grafana-dashboard-definitions/0/prometheus-remote-write
|
|
|
|
name: grafana-dashboard-prometheus-remote-write
|
|
|
|
readOnly: false
|
|
|
|
- mountPath: /grafana-dashboard-definitions/0/prometheus
|
|
|
|
name: grafana-dashboard-prometheus
|
|
|
|
readOnly: false
|
|
|
|
- mountPath: /grafana-dashboard-definitions/0/proxy
|
|
|
|
name: grafana-dashboard-proxy
|
|
|
|
readOnly: false
|
|
|
|
- mountPath: /grafana-dashboard-definitions/0/scheduler
|
|
|
|
name: grafana-dashboard-scheduler
|
|
|
|
readOnly: false
|
2018-12-12 18:18:00 +01:00
|
|
|
- mountPath: /grafana-dashboard-definitions/0/statefulset
|
|
|
|
name: grafana-dashboard-statefulset
|
|
|
|
readOnly: false
|
2019-11-17 16:05:27 +01:00
|
|
|
- mountPath: /grafana-dashboard-definitions/0/workload-total
|
|
|
|
name: grafana-dashboard-workload-total
|
|
|
|
readOnly: false
|
2018-12-12 18:18:00 +01:00
|
|
|
- mountPath: /etc/grafana
|
|
|
|
name: grafana-config
|
|
|
|
readOnly: false
|
2019-02-01 14:52:53 +01:00
|
|
|
nodeSelector:
|
|
|
|
beta.kubernetes.io/os: linux
|
2018-12-12 18:18:00 +01:00
|
|
|
securityContext:
|
|
|
|
runAsNonRoot: true
|
|
|
|
runAsUser: 65534
|
|
|
|
serviceAccountName: grafana
|
|
|
|
volumes:
|
2019-04-08 21:42:26 +02:00
|
|
|
- emptyDir: {}
|
|
|
|
name: grafana-storage
|
2018-12-12 18:18:00 +01:00
|
|
|
- name: grafana-datasources
|
|
|
|
secret:
|
|
|
|
secretName: grafana-datasources
|
|
|
|
- configMap:
|
|
|
|
name: grafana-dashboards
|
|
|
|
name: grafana-dashboards
|
2019-08-08 22:09:53 +02:00
|
|
|
- configMap:
|
|
|
|
name: grafana-dashboard-apiserver
|
|
|
|
name: grafana-dashboard-apiserver
|
2019-11-17 16:05:27 +01:00
|
|
|
- configMap:
|
|
|
|
name: grafana-dashboard-cluster-total
|
|
|
|
name: grafana-dashboard-cluster-total
|
2019-08-08 22:09:53 +02:00
|
|
|
- configMap:
|
|
|
|
name: grafana-dashboard-controller-manager
|
|
|
|
name: grafana-dashboard-controller-manager
|
2019-02-04 23:54:28 +01:00
|
|
|
- configMap:
|
|
|
|
name: grafana-dashboard-coredns-dashboard
|
|
|
|
name: grafana-dashboard-coredns-dashboard
|
2018-12-12 18:18:00 +01:00
|
|
|
- configMap:
|
|
|
|
name: grafana-dashboard-k8s-resources-cluster
|
|
|
|
name: grafana-dashboard-k8s-resources-cluster
|
|
|
|
- configMap:
|
|
|
|
name: grafana-dashboard-k8s-resources-namespace
|
|
|
|
name: grafana-dashboard-k8s-resources-namespace
|
2019-11-17 16:05:27 +01:00
|
|
|
- configMap:
|
|
|
|
name: grafana-dashboard-k8s-resources-node
|
|
|
|
name: grafana-dashboard-k8s-resources-node
|
2018-12-12 18:18:00 +01:00
|
|
|
- configMap:
|
|
|
|
name: grafana-dashboard-k8s-resources-pod
|
|
|
|
name: grafana-dashboard-k8s-resources-pod
|
2019-04-22 20:17:53 +02:00
|
|
|
- configMap:
|
|
|
|
name: grafana-dashboard-k8s-resources-workload
|
|
|
|
name: grafana-dashboard-k8s-resources-workload
|
|
|
|
- configMap:
|
|
|
|
name: grafana-dashboard-k8s-resources-workloads-namespace
|
|
|
|
name: grafana-dashboard-k8s-resources-workloads-namespace
|
2019-08-08 22:09:53 +02:00
|
|
|
- configMap:
|
|
|
|
name: grafana-dashboard-kubelet
|
|
|
|
name: grafana-dashboard-kubelet
|
2019-02-04 21:03:30 +01:00
|
|
|
- configMap:
|
|
|
|
name: grafana-dashboard-kubernetes-cluster-dashboard
|
|
|
|
name: grafana-dashboard-kubernetes-cluster-dashboard
|
2019-11-17 16:05:27 +01:00
|
|
|
- configMap:
|
|
|
|
name: grafana-dashboard-namespace-by-pod
|
|
|
|
name: grafana-dashboard-namespace-by-pod
|
|
|
|
- configMap:
|
|
|
|
name: grafana-dashboard-namespace-by-workload
|
|
|
|
name: grafana-dashboard-namespace-by-workload
|
2020-08-16 05:47:13 +02:00
|
|
|
- configMap:
|
|
|
|
name: grafana-dashboard-nginx-dashboard
|
|
|
|
name: grafana-dashboard-nginx-dashboard
|
2019-10-09 22:33:29 +02:00
|
|
|
- configMap:
|
|
|
|
name: grafana-dashboard-node-cluster-rsrc-use
|
|
|
|
name: grafana-dashboard-node-cluster-rsrc-use
|
|
|
|
- configMap:
|
|
|
|
name: grafana-dashboard-node-rsrc-use
|
|
|
|
name: grafana-dashboard-node-rsrc-use
|
|
|
|
- configMap:
|
|
|
|
name: grafana-dashboard-nodes
|
|
|
|
name: grafana-dashboard-nodes
|
2018-12-12 18:18:00 +01:00
|
|
|
- configMap:
|
|
|
|
name: grafana-dashboard-persistentvolumesusage
|
|
|
|
name: grafana-dashboard-persistentvolumesusage
|
2019-11-17 16:05:27 +01:00
|
|
|
- configMap:
|
|
|
|
name: grafana-dashboard-pod-total
|
|
|
|
name: grafana-dashboard-pod-total
|
2019-02-04 21:03:30 +01:00
|
|
|
- configMap:
|
|
|
|
name: grafana-dashboard-prometheus-dashboard
|
|
|
|
name: grafana-dashboard-prometheus-dashboard
|
2019-08-08 22:09:53 +02:00
|
|
|
- configMap:
|
|
|
|
name: grafana-dashboard-prometheus-remote-write
|
|
|
|
name: grafana-dashboard-prometheus-remote-write
|
|
|
|
- configMap:
|
|
|
|
name: grafana-dashboard-prometheus
|
|
|
|
name: grafana-dashboard-prometheus
|
|
|
|
- configMap:
|
|
|
|
name: grafana-dashboard-proxy
|
|
|
|
name: grafana-dashboard-proxy
|
|
|
|
- configMap:
|
|
|
|
name: grafana-dashboard-scheduler
|
|
|
|
name: grafana-dashboard-scheduler
|
2018-12-12 18:18:00 +01:00
|
|
|
- configMap:
|
|
|
|
name: grafana-dashboard-statefulset
|
|
|
|
name: grafana-dashboard-statefulset
|
2019-11-17 16:05:27 +01:00
|
|
|
- configMap:
|
|
|
|
name: grafana-dashboard-workload-total
|
|
|
|
name: grafana-dashboard-workload-total
|
2018-12-12 18:18:00 +01:00
|
|
|
- name: grafana-config
|
|
|
|
secret:
|
|
|
|
secretName: grafana-config
|