2023-05-07 11:57:58 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: homeassistant
|
|
|
|
name: homeassistant
|
|
|
|
namespace: home-automation
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: homeassistant
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: homeassistant
|
|
|
|
spec:
|
2023-07-30 16:43:37 +00:00
|
|
|
initContainers:
|
|
|
|
- name: config-binder
|
|
|
|
image: alpine
|
|
|
|
command: ["sh", "-c", "cp /binder/configuration.yaml /config/configuration.yaml"]
|
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /binder/configuration.yaml
|
|
|
|
name: homeassistant-config
|
|
|
|
subPath: configuration.yaml
|
|
|
|
- mountPath: /config
|
|
|
|
name: homeassistant-data
|
2023-05-07 11:57:58 +00:00
|
|
|
containers:
|
|
|
|
- name: homeassistant
|
|
|
|
image: ghcr.io/home-assistant/home-assistant:stable
|
|
|
|
volumeMounts:
|
2023-07-30 16:43:37 +00:00
|
|
|
- mountPath: /config
|
|
|
|
name: homeassistant-data
|
|
|
|
- mountPath: /config/recorder.yaml
|
|
|
|
name: homeassistant-recorder
|
|
|
|
subPath: recorder.yaml
|
2023-05-07 12:08:09 +00:00
|
|
|
volumes:
|
2023-07-30 16:43:37 +00:00
|
|
|
- name: homeassistant-config
|
|
|
|
configMap:
|
|
|
|
name: homeassistant-config
|
|
|
|
- name: homeassistant-data
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: homeassistant-pvc
|
|
|
|
- name: homeassistant-recorder
|
|
|
|
secret:
|
|
|
|
secretName: homeassistant-recorder
|