-
Notifications
You must be signed in to change notification settings - Fork 54
/
k8s.yaml
85 lines (80 loc) · 1.66 KB
/
k8s.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
---
apiVersion: v1
kind: Namespace
metadata:
name: vuegraf
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: vue
namespace: vuegraf
spec:
replicas: 1
revisionHistoryLimit: 3
selector:
matchLabels:
app: vue
strategy:
type: Recreate
template:
metadata:
labels:
app: vue
spec:
containers:
- image: docker.io/jertel/vuegraf:latest
imagePullPolicy: IfNotPresent
name: vue
volumeMounts:
- mountPath: /opt/vuegraf/conf/vuegraf.json
subPath: vuegraf.json
name: config
securityContext:
runAsNonRoot: true
volumes:
- name: config
configMap:
name: vuegraf-configs
---
apiVersion: v1
kind: ConfigMap
metadata:
name: vuegraf-configs
namespace: vuegraf
data:
# Replace influx db configuration; emporia account information
# and channel names
vuegraf.json: |
{
"influxDb": {
"host": "influx-svc.influxdb.svc.cluster.local",
"port": 8086,
"user": "vue-write",
"pass": "XXX",
"database": "vue",
"reset": false
},
"accounts": [
{
"name": "accountNameHere",
"email": "[email protected]",
"password": "YYY",
"devices": [
{
"name": "panelNameHere",
"channels": [
"Kiln",
"Split AC",
"Outlets - left",
"Outlets - right",
"Outlets - central",
"Shedroom",
"Outlets - rear",
"Lights"
]
}
]
}
]
}