Hassio/manifests/deployment.yaml

46 lines
1.3 KiB
YAML
Raw Normal View History

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:
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
containers:
- name: homeassistant
image: ghcr.io/home-assistant/home-assistant:stable
volumeMounts:
- mountPath: /config
name: homeassistant-data
- mountPath: /config/recorder.yaml
name: homeassistant-recorder
subPath: recorder.yaml
2023-05-07 12:08:09 +00:00
volumes:
- name: homeassistant-config
configMap:
name: homeassistant-config
- name: homeassistant-data
persistentVolumeClaim:
claimName: homeassistant-pvc
- name: homeassistant-recorder
secret:
secretName: homeassistant-recorder