diff --git a/charts/esphome/templates/deployment.yaml b/charts/esphome/templates/deployment.yaml index 307795c..30d7a11 100644 --- a/charts/esphome/templates/deployment.yaml +++ b/charts/esphome/templates/deployment.yaml @@ -52,8 +52,8 @@ spec: volumeMounts: - name: config mountPath: /config - - name: store - mountPath: /media/store + - name: cache + mountPath: /cache {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} @@ -74,10 +74,10 @@ spec: {{- else }} claimName: {{ .Values.pvc.config.existingClaim }} {{- end }} - - name: store + - name: cache persistentVolumeClaim: - {{- if not .Values.pvc.store.existingClaim }} - claimName: {{ include "esphome.fullname" . }}-store + {{- if not .Values.pvc.cache.existingClaim }} + claimName: {{ include "esphome.fullname" . }}-cache {{- else }} claimName: {{ .Values.pvc.config.existingClaim }} {{- end }} diff --git a/charts/esphome/templates/pvc.yaml b/charts/esphome/templates/pvc.yaml index 0a0d10b..82dd7ca 100644 --- a/charts/esphome/templates/pvc.yaml +++ b/charts/esphome/templates/pvc.yaml @@ -19,13 +19,13 @@ spec: apiVersion: v1 kind: PersistentVolumeClaim metadata: - name: {{ include "esphome.fullname" . }}-store + name: {{ include "esphome.fullname" . }}-cache labels: {{- include "esphome.labels" . | nindent 4 }} spec: accessModes: - ReadWriteOnce - storageClassName: {{ .Values.pvc.store.storageClassName | quote }} + storageClassName: {{ .Values.pvc.cache.storageClassName | quote }} resources: requests: - storage: {{ .Values.pvc.store.storage | quote }} + storage: {{ .Values.pvc.cache.storage | quote }} diff --git a/charts/esphome/values.yaml b/charts/esphome/values.yaml index ba2d02e..ce91768 100644 --- a/charts/esphome/values.yaml +++ b/charts/esphome/values.yaml @@ -52,6 +52,6 @@ pvc: existingClaim: false storageClassName: "" storage: 1Gi - store: + cache: storageClassName: "" storage: 5Gi