41 lines
886 B
YAML
41 lines
886 B
YAML
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: home-assistant
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: home-assistant
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: home-assistant
|
||
|
spec:
|
||
|
volumes:
|
||
|
- name: data
|
||
|
hostPath:
|
||
|
path: /data/home-assistant/data
|
||
|
- name: media
|
||
|
hostPath:
|
||
|
path: /data/home-assistant/media
|
||
|
containers:
|
||
|
- name: home-assistant
|
||
|
image: home-assistant
|
||
|
env:
|
||
|
- name: TZ
|
||
|
value: Asia/Shanghai
|
||
|
resources:
|
||
|
limits:
|
||
|
memory: "2Gi"
|
||
|
cpu: "2"
|
||
|
requests:
|
||
|
cpu: "500m"
|
||
|
memory: "128Mi"
|
||
|
ports:
|
||
|
- containerPort: 8123
|
||
|
name: web
|
||
|
volumeMounts:
|
||
|
- mountPath: /config
|
||
|
name: data
|
||
|
- mountPath: /media
|
||
|
name: media
|