change config to env, add ci-script
All checks were successful
ci/woodpecker/tag/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/tag/woodpecker Pipeline was successful
This commit is contained in:
44
deployment/install-yml.tmpl
Normal file
44
deployment/install-yml.tmpl
Normal file
@ -0,0 +1,44 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: homea
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: digitaltwin1
|
||||
namespace: homea
|
||||
data:
|
||||
MQTT__BROKER: "emqx01-anonymous-cluster-internal.broker.svc.cluster.local"
|
||||
MQTT__DIGITALOUTPUTTOPICPREFIX: "dt1/coil"
|
||||
MQTT__DIGITALINPUTTOPICPREFIX: "dt1/di"
|
||||
MQTT__ANALOGINPUTEVENTTOPICPREFIX: "dt1/ai/event"
|
||||
MQTT__ANALOGINPUTPERIODICTOPICPREFIX: "dt1/ai/periodic"
|
||||
MQTT__ANALOGPUBLISHPERIOD: "10.0"
|
||||
MQTT__DISABLEANALOGINPUTEVENTPUBLISHING: "true"
|
||||
MODBUS__CLIENT: "172.16.2.157"
|
||||
MODBUS__SCANRATE: "0.25"
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: digitaltwin1
|
||||
namespace: homea
|
||||
labels:
|
||||
app: digitaltwin1
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: digitaltwin1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: digitaltwin1
|
||||
spec:
|
||||
containers:
|
||||
- name: digitaltwin1
|
||||
image: gitea.hottis.de/wn/digitaltwin1:%IMAGETAG%
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: digitaltwin1
|
Reference in New Issue
Block a user