This commit is contained in:
Sense T
2023-09-06 04:41:05 +00:00
parent d5933d6be0
commit 54b5e8d6f9
10 changed files with 211 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: sgcc-electricity
spec:
selector:
matchLabels:
app: sgcc-electricity
template:
metadata:
labels:
app: sgcc-electricity
spec:
volumes:
- name: envfile
configMap:
name: sgcc-electricity
items:
- key: .env
path: .env
containers:
- name: sgcc-electricity
image: dockerproxy.com/dscao/sgcc_electricity
imagePullPolicy: Always
resources:
limits:
memory: "16Mi"
cpu: "100m"
env:
- name: HASS_URL
value: http://home-assistant:8124
envFrom:
- secretRef:
name: sgcc-electricity
command:
- ""

View File

@@ -0,0 +1,13 @@
# yaml-language-server: $schema=https://json.schemastore.org/kustomization.json
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: hass
resources:
- deployment.yaml
secretGenerator:
- name: sgcc-electricity
files:
- config/HASS_TOKEN
- config/PASSWORD
- config/PHONE_NUMBER