Skip to content

Commit

Permalink
Add pvc
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway committed Oct 10, 2024
1 parent 7403095 commit 30c91a1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
9 changes: 1 addition & 8 deletions helm-charts/hypha-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,7 @@ spec:
volumes:
- name: {{ .Values.persistence.volumeName }}
persistentVolumeClaim:
claimName: {{ .Values.persistence.existingClaim | default (include "hypha-server.fullname" .) }}
{{- if not .Values.persistence.existingClaim }}
accessModes:
{{- toYaml .Values.persistence.accessModes | nindent 14 }}
resources:
requests:
storage: {{ .Values.persistence.size }}
{{- end }}
claimName: {{ .Values.persistence.claimName }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
10 changes: 10 additions & 0 deletions helm-charts/hypha-server/templates/pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: hypha-data-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
6 changes: 1 addition & 5 deletions helm-charts/hypha-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,5 @@ startupCommand:
# Persistence Configuration
persistence:
volumeName: hypha-app-storage
claimName: hypha-data-pvc
mountPath: /app/data
storageClass: ""
accessModes:
- ReadWriteOnce
size: 5Gi
existingClaim: "" # If you have an existing claim, specify it here. Otherwise, a new PVC will be created.

0 comments on commit 30c91a1

Please sign in to comment.