This commit is contained in:
parent
743a9991dd
commit
83653353d7
3 changed files with 9 additions and 9 deletions
|
@ -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 }}
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -52,6 +52,6 @@ pvc:
|
|||
existingClaim: false
|
||||
storageClassName: ""
|
||||
storage: 1Gi
|
||||
store:
|
||||
cache:
|
||||
storageClassName: ""
|
||||
storage: 5Gi
|
||||
|
|
Loading…
Reference in a new issue