This commit is contained in:
parent
743a9991dd
commit
83653353d7
3 changed files with 9 additions and 9 deletions
|
@ -52,8 +52,8 @@ spec:
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config
|
- name: config
|
||||||
mountPath: /config
|
mountPath: /config
|
||||||
- name: store
|
- name: cache
|
||||||
mountPath: /media/store
|
mountPath: /cache
|
||||||
{{- with .Values.nodeSelector }}
|
{{- with .Values.nodeSelector }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
|
@ -74,10 +74,10 @@ spec:
|
||||||
{{- else }}
|
{{- else }}
|
||||||
claimName: {{ .Values.pvc.config.existingClaim }}
|
claimName: {{ .Values.pvc.config.existingClaim }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
- name: store
|
- name: cache
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
{{- if not .Values.pvc.store.existingClaim }}
|
{{- if not .Values.pvc.cache.existingClaim }}
|
||||||
claimName: {{ include "esphome.fullname" . }}-store
|
claimName: {{ include "esphome.fullname" . }}-cache
|
||||||
{{- else }}
|
{{- else }}
|
||||||
claimName: {{ .Values.pvc.config.existingClaim }}
|
claimName: {{ .Values.pvc.config.existingClaim }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -19,13 +19,13 @@ spec:
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "esphome.fullname" . }}-store
|
name: {{ include "esphome.fullname" . }}-cache
|
||||||
labels:
|
labels:
|
||||||
{{- include "esphome.labels" . | nindent 4 }}
|
{{- include "esphome.labels" . | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
storageClassName: {{ .Values.pvc.store.storageClassName | quote }}
|
storageClassName: {{ .Values.pvc.cache.storageClassName | quote }}
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: {{ .Values.pvc.store.storage | quote }}
|
storage: {{ .Values.pvc.cache.storage | quote }}
|
||||||
|
|
|
@ -52,6 +52,6 @@ pvc:
|
||||||
existingClaim: false
|
existingClaim: false
|
||||||
storageClassName: ""
|
storageClassName: ""
|
||||||
storage: 1Gi
|
storage: 1Gi
|
||||||
store:
|
cache:
|
||||||
storageClassName: ""
|
storageClassName: ""
|
||||||
storage: 5Gi
|
storage: 5Gi
|
||||||
|
|
Loading…
Reference in a new issue