-
Notifications
You must be signed in to change notification settings - Fork 1
/
contiv-grafana.yml
51 lines (50 loc) · 1.05 KB
/
contiv-grafana.yml
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
# Grafana is a process and hence needs service account access
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: grafana
namespace: kube-system
# Deploy Grafana as a replicaset with one container
---
apiVersion: extensions/v1beta1
kind: ReplicaSet
metadata:
name: contiv-grafana
namespace: kube-system
labels:
k8s-app: contiv-grafana
spec:
replicas: 1
template:
metadata:
name: contiv-grafana
labels:
k8s-app: contiv-grafana
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ''
spec:
tolerations:
- key: node-role.kubernetes.io/master
effect: NoSchedule
nodeSelector:
node-role.kubernetes.io/master: ""
containers:
- name: contiv-grafana
image: grafana/grafana
serviceAccountName: grafana
# Expose Grafana as a service
---
apiVersion: v1
kind: Service
metadata:
name: grafana
namespace: kube-system
spec:
type: NodePort
selector:
k8s-app: contiv-grafana
ports:
- protocol: TCP
port: 3000
nodePort: 32701