68 lines
1.7 KiB
YAML
68 lines
1.7 KiB
YAML
apiVersion: apps/v1
|
|
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
|
|
annotations:
|
|
seccomp.security.alpha.kubernetes.io/pod: 'docker/default'
|
|
spec:
|
|
containers:
|
|
- name: grafana
|
|
image: grafana/grafana:6.0.1
|
|
env:
|
|
- name: GF_PATHS_CONFIG
|
|
value: "/etc/grafana/custom.ini"
|
|
ports:
|
|
- name: http
|
|
containerPort: 8080
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 100Mi
|
|
limits:
|
|
cpu: 200m
|
|
memory: 200Mi
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /etc/grafana
|
|
- name: datasources
|
|
mountPath: /etc/grafana/provisioning/datasources
|
|
- name: providers
|
|
mountPath: /etc/grafana/provisioning/dashboards
|
|
- name: dashboards-etcd
|
|
mountPath: /etc/grafana/dashboards/etcd
|
|
- name: dashboards-k8s
|
|
mountPath: /etc/grafana/dashboards/k8s
|
|
volumes:
|
|
- name: config
|
|
configMap:
|
|
name: grafana-config
|
|
- name: datasources
|
|
configMap:
|
|
name: grafana-datasources
|
|
- name: providers
|
|
configMap:
|
|
name: grafana-providers
|
|
- name: dashboards-etcd
|
|
configMap:
|
|
name: grafana-dashboards-etcd
|
|
- name: dashboards-k8s
|
|
configMap:
|
|
name: grafana-dashboards-k8s
|
|
|