rpi.carlosedp.cluster-monit.../manifests/grafana/grafana-deployment.yaml
2018-03-01 19:03:53 -05:00

61 lines
1.6 KiB
YAML

apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: grafana
spec:
replicas: 1
template:
metadata:
labels:
app: grafana
spec:
securityContext:
runAsNonRoot: true
runAsUser: 65534
containers:
- name: grafana
image: carlosedp/monitoring-grafana:latest
volumeMounts:
- name: grafana-config
mountPath: /grafana/conf/config.ini
subPath: config.ini
- name: grafana-storage
mountPath: /data
- name: grafana-datasources
mountPath: /grafana/conf/provisioning/datasources
- name: grafana-dashboards
mountPath: /grafana/conf/provisioning/dashboards
- name: grafana-dashboard-definitions-0
mountPath: /grafana-dashboard-definitions/0
ports:
- name: web
containerPort: 3000
env:
- name: GF_INSTALL_PLUGINS
value: "grafana-clock-panel,grafana-piechart-panel"
- name: GF_PATHS_PLUGINS
value: "/data/plugins"
resources:
requests:
memory: 100Mi
cpu: 100m
limits:
memory: 200Mi
cpu: 200m
volumes:
- name: grafana-config
configMap:
name: grafana-config
- name: grafana-storage
persistentVolumeClaim:
claimName: grafana-claim
- name: grafana-datasources
configMap:
name: grafana-datasources
- name: grafana-dashboards
configMap:
name: grafana-dashboards
- name: grafana-dashboard-definitions-0
configMap:
name: grafana-dashboard-definitions-0