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
|
# 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.
|
# 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
|
# This is the version number of the application being deployed. This version number should be
|
||||||
# incremented each time you make changes to the application.
|
# incremented each time you make changes to the application.
|
||||||
|
|||||||
@ -56,6 +56,14 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: gitea-pv
|
- name: gitea-pv
|
||||||
mountPath: /data
|
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 }}
|
{{- with .Values.nodeSelector }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
@ -68,6 +76,7 @@ spec:
|
|||||||
tolerations:
|
tolerations:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if and .Values.config.persistence.enabled (not .Values.config.persistence.existingClaim) }}
|
||||||
volumeClaimTemplates:
|
volumeClaimTemplates:
|
||||||
- metadata:
|
- metadata:
|
||||||
name: gitea-pv
|
name: gitea-pv
|
||||||
@ -77,4 +86,5 @@ spec:
|
|||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: {{ .Values.config.storageSize }}
|
storage: {{ .Values.config.storageSize }}
|
||||||
storageClassName: {{ .Values.config.storageClassName | quote }}
|
storageClassName: {{ .Values.config.persistence.storageClassName | quote }}
|
||||||
|
{{= end -}}
|
||||||
|
|||||||
@ -72,5 +72,8 @@ tolerations: []
|
|||||||
affinity: {}
|
affinity: {}
|
||||||
|
|
||||||
config:
|
config:
|
||||||
storageClassName: nfs-client-hestia
|
persistence:
|
||||||
storageSize: 20Gi
|
enabled: true
|
||||||
|
existingClaim: gitea-data
|
||||||
|
storageClassName: nfs-client-icarus
|
||||||
|
storageSize: 20Gi
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user