helm/hass/home-assistant/deployment.yaml

41 lines
886 B
YAML
Raw Normal View History

2023-09-06 04:41:05 +00:00
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