Added PVC
This commit is contained in:
@@ -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 -}}
|
||||
|
||||
Reference in New Issue
Block a user