feat(homeassistant): added pvc for persistent storage configuration
This commit is contained in:
4 files changed
+31
-3
No files matched your search
@@ -3,7 +3,7 @@ name: homeassistant
|
|||||||
description: A Helm chart to deploy Home Assistant on Kubernetes
|
description: A Helm chart to deploy Home Assistant on Kubernetes
|
||||||
type: application
|
type: application
|
||||||
|
|
||||||
version: 1.3.1-release-2026-2-3
|
version: 1.4.0+up2026.2.3
|
||||||
|
|
||||||
appVersion: "2026.2.3"
|
appVersion: "2026.2.3"
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: {{ .Chart.Name }}-{{ .Release.Name }}-pvc
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: {{ .Values.core.storage.size }}
|
||||||
|
storageClassName: {{ .Values.core.storage.storageClass }}
|
||||||
@@ -21,6 +21,9 @@ spec:
|
|||||||
- name: "{{ .Release.Name }}-{{ .Chart.Name }}"
|
- name: "{{ .Release.Name }}-{{ .Chart.Name }}"
|
||||||
image: "ghcr.io/home-assistant/home-assistant:{{ .Chart.AppVersion }}"
|
image: "ghcr.io/home-assistant/home-assistant:{{ .Chart.AppVersion }}"
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
|
env:
|
||||||
|
- name: TZ
|
||||||
|
value: "{{ .Values.core.timezone }}"
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: 8123
|
containerPort: 8123
|
||||||
@@ -30,10 +33,11 @@ spec:
|
|||||||
limits:
|
limits:
|
||||||
cpu: {{ .Values.resources.limits.cpu }}
|
cpu: {{ .Values.resources.limits.cpu }}
|
||||||
memory: {{ .Values.resources.limits.memory }}
|
memory: {{ .Values.resources.limits.memory }}
|
||||||
|
ephemeral-storage: {{ .Values.resources.limits.ephemeralStorage }}
|
||||||
requests:
|
requests:
|
||||||
cpu: {{ .Values.resources.requests.cpu }}
|
cpu: {{ .Values.resources.requests.cpu }}
|
||||||
memory: {{ .Values.resources.requests.memory }}
|
memory: {{ .Values.resources.requests.memory }}
|
||||||
# TODO: volume mounts
|
ephemeral-storage: {{ .Values.resources.requests.ephemeralStorage }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /config/configuration.yaml
|
- mountPath: /config/configuration.yaml
|
||||||
subPath: configuration.yaml
|
subPath: configuration.yaml
|
||||||
@@ -44,7 +48,9 @@ spec:
|
|||||||
- mountPath: /config/recorder-config.yaml
|
- mountPath: /config/recorder-config.yaml
|
||||||
subPath: recorder-config.yaml
|
subPath: recorder-config.yaml
|
||||||
name: recorder-config
|
name: recorder-config
|
||||||
# TODO: volumes
|
- mountPath: /config
|
||||||
|
name: hass-volume
|
||||||
|
subPath: hass-config
|
||||||
volumes:
|
volumes:
|
||||||
- name: core-config
|
- name: core-config
|
||||||
secret:
|
secret:
|
||||||
@@ -64,4 +70,7 @@ spec:
|
|||||||
items:
|
items:
|
||||||
- key: recorder-config
|
- key: recorder-config
|
||||||
path: recorder-config.yaml
|
path: recorder-config.yaml
|
||||||
|
- name: hass-volume
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: {{ .Chart.Name }}-{{ .Release.Name }}-pvc
|
||||||
# TODO: bind to local nodes
|
# TODO: bind to local nodes
|
||||||
@@ -26,9 +26,11 @@ resources:
|
|||||||
limits:
|
limits:
|
||||||
cpu: 1
|
cpu: 1
|
||||||
memory: 1Gi
|
memory: 1Gi
|
||||||
|
ephemeralStorage: 1Gi
|
||||||
requests:
|
requests:
|
||||||
cpu: 0.2
|
cpu: 0.2
|
||||||
memory: 512Mi
|
memory: 512Mi
|
||||||
|
ephemeralStorage: 128Mi
|
||||||
|
|
||||||
# This is to setup the liveness and readiness probes more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
|
# This is to setup the liveness and readiness probes more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
@@ -59,6 +61,12 @@ tolerations: []
|
|||||||
|
|
||||||
affinity: {}
|
affinity: {}
|
||||||
|
|
||||||
|
core:
|
||||||
|
timezone: "UTC"
|
||||||
|
storage:
|
||||||
|
size: 5Gi
|
||||||
|
storageClass: "default"
|
||||||
|
|
||||||
# Must include the following keys:
|
# Must include the following keys:
|
||||||
# - config
|
# - config
|
||||||
# - http-config
|
# - http-config
|
||||||
|
|||||||
Reference in new issue
Block a user