rpi.carlosedp.cluster-monit.../manifests/grafana/grafana-deployment.yaml

61 lines
1.6 KiB
YAML
Raw Normal View History

2018-03-02 01:03:53 +01:00
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
2018-04-05 04:37:58 +02:00
image: carlosedp/monitoring-grafana:v5.0.4
2018-03-02 01:03:53 +01:00
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