Added PVC
This commit is contained in:
parent
accaedf00e
commit
6ee513c363
@ -14,7 +14,7 @@ type: application
|
||||
|
||||
# This is the chart version. This version number should be incremented each time you make changes
|
||||
# to the chart and its templates, including the app version.
|
||||
version: 0.1.4
|
||||
version: 0.1.5
|
||||
|
||||
# This is the version number of the application being deployed. This version number should be
|
||||
# incremented each time you make changes to the application.
|
||||
|
||||
@ -56,6 +56,14 @@ spec:
|
||||
volumeMounts:
|
||||
- name: gitea-pv
|
||||
mountPath: /data
|
||||
volumes:
|
||||
{{- if and .Values.config.persistence.enabled .Values.config.persistence.existingClaim }}
|
||||
- name: gitea-pv
|
||||
persistentVolumeClaim:
|
||||
{{- with .Values.config.persistence.existingClaim }}
|
||||
claimName: {{ tpl . $ }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- with .Values.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
@ -68,6 +76,7 @@ spec:
|
||||
tolerations:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- if and .Values.config.persistence.enabled (not .Values.config.persistence.existingClaim) }}
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
name: gitea-pv
|
||||
@ -77,4 +86,5 @@ spec:
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ .Values.config.storageSize }}
|
||||
storageClassName: {{ .Values.config.storageClassName | quote }}
|
||||
storageClassName: {{ .Values.config.persistence.storageClassName | quote }}
|
||||
{{= end -}}
|
||||
|
||||
@ -72,5 +72,8 @@ tolerations: []
|
||||
affinity: {}
|
||||
|
||||
config:
|
||||
storageClassName: nfs-client-hestia
|
||||
storageSize: 20Gi
|
||||
persistence:
|
||||
enabled: true
|
||||
existingClaim: gitea-data
|
||||
storageClassName: nfs-client-icarus
|
||||
storageSize: 20Gi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user