diff --git a/apps/home-assistant.yaml b/apps/home-assistant.yaml index 014da7b..c8d9904 100644 --- a/apps/home-assistant.yaml +++ b/apps/home-assistant.yaml @@ -21,6 +21,9 @@ spec: - name: hassio image: "homeassistant/home-assistant:latest" imagePullPolicy: Always + volumeMounts: + - name: hassio-storage + mountPath: /.storage ports: - name: http containerPort: 8123 @@ -40,6 +43,24 @@ spec: # limits: # memory: "1000Mi" # cpu: "500m" + volumes: + - name: hassio-storage + persistentVolumeClaim: + claimName: hassio-storage +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: hassio-storage + labels: + app: hassio +spec: + storageClassName: nfs-ssd + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 20Mi --- apiVersion: v1 kind: Service