mirror of
https://github.com/puppetmaster/typhoon.git
synced 2024-12-27 21:29:33 +01:00
daee5a9d60
* https://github.com/grafana/grafana/releases/tag/v6.0.0 * http://docs.grafana.org/guides/whats-new-in-v6-0/
62 lines
1.5 KiB
YAML
62 lines
1.5 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.0
|
|
env:
|
|
- name: GF_PATHS_CONFIG
|
|
value: "/etc/grafana/custom.ini"
|
|
ports:
|
|
- name: http
|
|
containerPort: 8080
|
|
resources:
|
|
requests:
|
|
memory: 100Mi
|
|
cpu: 100m
|
|
limits:
|
|
memory: 200Mi
|
|
cpu: 200m
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /etc/grafana
|
|
- name: datasources
|
|
mountPath: /etc/grafana/provisioning/datasources
|
|
- name: providers
|
|
mountPath: /etc/grafana/provisioning/dashboards
|
|
- name: dashboards
|
|
mountPath: /etc/grafana/dashboards
|
|
volumes:
|
|
- name: config
|
|
configMap:
|
|
name: grafana-config
|
|
- name: datasources
|
|
configMap:
|
|
name: grafana-datasources
|
|
- name: providers
|
|
configMap:
|
|
name: grafana-providers
|
|
- name: dashboards
|
|
configMap:
|
|
name: grafana-dashboards
|