-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
manifest.yaml
100 lines (97 loc) · 1.86 KB
/
manifest.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
namespace: flink-home
labels:
app: influxdb
name: influxdb-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
---
apiVersion: v1
kind: Secret
metadata:
name: influxdb-secrets
type: Opaque
data:
INFLUXDB_DB: ZmxpbmtfaG9tZQo=
INFLUXDB_USER: dXNlcgo=
INFLUXDB_USER_PASSWORD: cGFzc3dvcmQK
INFLUXDB_READ_USER: cmVhZG9ubHkK
INFLUXDB_ADMIN_USER: cm9vdAo=
INFLUXDB_ADMIN_USER_PASSWORD: cGFzc3dvcmQK
INFLUXDB_HOST: aW5mbHV4ZGIK
---
apiVersion: v1
kind: ConfigMap
metadata:
name: influxdb-config
data:
influxdb.conf: |+
[http]
flux-enabled=true
[meta]
dir = "/var/lib/influxdb/meta"
[data]
dir = "/var/lib/influxdb/data"
engine = "tsm1"
wal-dir = "/var/lib/influxdb/wal"
---
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: flink-home
labels:
app: influxdb
name: influxdb
spec:
replicas: 1
selector:
matchLabels:
app: influxdb
template:
metadata:
labels:
app: influxdb
spec:
containers:
- envFrom:
- secretRef:
name: influxdb-secrets
image: docker.io/influxdb:1.8
name: influxdb
volumeMounts:
- mountPath: /var/lib/influxdb
name: var-lib-influxdb
- mountPath: /etc/influxdb/influxdb.conf
name: influxdb-config
subPath: influxdb.conf
readOnly: true
volumes:
- name: influxdb-config
configMap:
name: influxdb-config
- name: var-lib-influxdb
persistentVolumeClaim:
claimName: influxdb-pvc
---
apiVersion: v1
kind: Service
metadata:
labels:
app: influxdb
name: influxdb
namespace: flink-home
spec:
ports:
- port: 8086
protocol: TCP
targetPort: 8086
selector:
app: influxdb
type: LoadBalancer