forked from kubernetes/test-infra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinfluxdb.yaml
67 lines (67 loc) · 1.32 KB
/
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: influxdb-${PROJECT}
labels:
app: influxdb
project: ${PROJECT}
spec:
replicas: 1
template:
metadata:
labels:
app: influxdb
project: ${PROJECT}
spec:
containers:
- name: influxdb
command:
image: influxdb:1.2.2
env:
- name: INFLUXDB_HTTP_AUTH_ENABLED
value: "true"
resources:
requests:
cpu: 0m
ports:
- name: influxdb-port
containerPort: 8086
volumeMounts:
- mountPath: /var/lib/influxdb/
name: database-volume
volumes:
- name: database-volume
persistentVolumeClaim:
claimName: influxdb-${PROJECT}-database-claim
---
apiVersion: v1
kind: Service
metadata:
labels:
app: influxdb
project: ${PROJECT}
name: influxdb-${PROJECT}
spec:
ports:
- name: influxdb
port: 8086
targetPort: influxdb-port
selector:
app: influxdb
project: ${PROJECT}
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: influxdb-${PROJECT}-database-claim
labels:
app: influxdb
project: ${PROJECT}
annotations:
volume.alpha.kubernetes.io/storage-class: value
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Gi