Add dsmr config

This commit is contained in:
Bart Geesink 2023-06-06 08:15:34 +02:00
parent 3727ec5d1e
commit 6fa5a8940b
3 changed files with 66 additions and 0 deletions

40
dsmr/dsmr.yml Normal file
View File

@ -0,0 +1,40 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: dsmr
labels:
app: dsmr
spec:
replicas: 1
selector:
matchLabels:
app: dsmr
template:
metadata:
labels:
app: dsmr
spec:
containers:
- name: dsmr
image: xirixiz/dsmr-reader-docker:latest
env:
- name: TZ
value: "Europe/Amsterdam"
- name: VIRTUAL_HOST
value: "localhost"
- name: DJANGO_DATABASE_HOST
value: "postgres-postgresql"
- name: DJANGO_DATABASE_USER
value: "dsmr"
- name: DJANGO_DATABASE_PASSWORD
value: "iWoo5Paa3johPhooshah"
- name: DJANGO_DATABASE_NAME
value: "dsmr"
- name: DJANGO_DATABASE_ENGINE
value: django.db.backends.postgresql
- name: DSMRREADER_REMOTE_DATALOGGER_MODE
value: standalone
- name: SECRET_KEY
value: "ohB8oogh6livaeyingoo"
ports:
- containerPort: 7777

View File

@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: dsmr
spec:
selector:
app: dsmr
ports:
- port: 80
targetPort: 80
type: LoadBalancer

15
dsmr/servicedsmr.yml Normal file
View File

@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
labels:
app: dsmr
name: dsmr
spec:
ports:
- nodePort: 30500
port: 80
protocol: TCP
targetPort: 80
selector:
app: dsmr
type: NodePort