File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 17
17
labels :
18
18
app : pygrowatt
19
19
spec :
20
+ volumes :
21
+ - name : pygrowatt-config
22
+ secret :
23
+ secretName : pygrowatt-config
24
+ items :
25
+ - key : config.ini
26
+ path : config.ini
20
27
containers :
21
28
- name : pygrowatt-container
22
29
image : pygrowatt
26
33
ports :
27
34
- containerPort : 5279
28
35
protocol : TCP
36
+ volumeMounts :
37
+ - mountPath : " /opt/PyGrowatt/scripts/config.ini"
38
+ subPath : " config.ini"
39
+ name : pygrowatt-config
40
+ readOnly : true
29
41
---
30
42
apiVersion : v1
31
43
kind : Service
Original file line number Diff line number Diff line change
1
+ ---
2
+ apiVersion : v1
3
+ kind : Secret
4
+ metadata :
5
+ name : pygrowatt-config
6
+ type : Opaque
7
+ stringData :
8
+ config.ini : |-
9
+ [Growatt]
10
+ KEY = Growatt
11
+ UpdateInterval = 5
12
+
13
+ [Pvoutput]
14
+ Apikey = Your-API-Key
15
+ SystemId = Your-System-Id
16
+ StatusInterval = 5
17
+
18
+ [MQTT]
19
+ ServerIP = test.mosquitto.org
20
+ ServerPort = 1883
You can’t perform that action at this time.
0 commit comments