forked from teeratpitakrat/kubernetes-monitoring
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinfluxdb.yaml
48 lines (48 loc) · 839 Bytes
/
influxdb.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
apiVersion: v1
kind: Service
metadata:
name: influxdb
labels:
name: influxdb
spec:
type: NodePort
ports:
- port: 8086
name: http
nodePort: 31070
- port: 2003
name: graphite
nodePort: 31071
selector:
name: influxdb
---
apiVersion: v1
kind: ReplicationController
metadata:
name: influxdb
labels:
name: influxdb
spec:
replicas: 1
selector:
name: influxdb
template:
metadata:
labels:
name: influxdb
spec:
containers:
- name: influxdb
image: influxdb
ports:
- containerPort: 8086
- containerPort: 2003
env:
- name: INFLUXDB_GRAPHITE_ENABLED
value: "true"
volumeMounts:
- mountPath: /var/lib/influxdb
name: data
volumes:
- name: data
emptyDir: {}