47 lines
1.0 KiB
YAML
47 lines
1.0 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: home-assistant
|
|
labels:
|
|
app: home-assistant
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: home-assistant
|
|
strategy:
|
|
type: RollingUpdate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: home-assistant
|
|
spec:
|
|
# hostNetwork: true
|
|
affinity:
|
|
nodeAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
nodeSelectorTerms:
|
|
- matchExpressions:
|
|
- key: kubernetes.io/arch
|
|
operator: In
|
|
values:
|
|
- arm64
|
|
containers:
|
|
- name: home-assistant
|
|
image: homeassistant/home-assistant:latest
|
|
env:
|
|
- name: TZ
|
|
value: "EST5EDT"
|
|
ports:
|
|
- containerPort: 8123
|
|
volumeMounts:
|
|
- name: home-assistant-config
|
|
mountPath: /config
|
|
volumes:
|
|
- name: home-assistant-config
|
|
persistentVolumeClaim:
|
|
claimName: home-assistant-config-pvc
|
|
|
|
# EOF
|