forked from postmanlabs/kubernetes-chaos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
grafana.yaml
52 lines (51 loc) · 1.15 KB
/
grafana.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: grafana
namespace: monitoring
spec:
replicas: 1
template:
metadata:
labels:
k8s-app: grafana
spec:
containers:
- name: grafana
image: grafana/grafana
ports:
- containerPort: 3000
protocol: TCP
volumeMounts:
- mountPath: /var/lib/grafana
name: grafana-storage
env:
- name: GF_SERVER_HTTP_PORT
value: "3000"
- name: GF_SECURITY_ADMIN_PASSWORD
value: "helloworld"
- name: GF_INSTALL_PLUGINS
value: "grafana-kubernetes-app"
volumes:
- name: grafana-storage
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
namespace: monitoring
name: grafana
annotations:
certmanager.k8s.io/cluster-issuer: letsencrypt-prod
spec:
tls:
- hosts:
- kube.meowsergirl.com
secretName: meowsergirl
rules:
- host: kube.meowsergirl.com
http:
paths:
- backend:
serviceName: grafana
servicePort: 3000
path: /