hass
This commit is contained in:
37
hass/elect/deployment.yaml
Normal file
37
hass/elect/deployment.yaml
Normal 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:
|
||||
- ""
|
||||
|
13
hass/elect/kustomization.yaml
Normal file
13
hass/elect/kustomization.yaml
Normal 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
|
Reference in New Issue
Block a user