38 lines
795 B
YAML
38 lines
795 B
YAML
|
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:
|
||
|
- ""
|
||
|
|