Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Put the db in a GCP filestore #37

Merged
merged 2 commits into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion helm-chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ spec:
volumes:
- name: db
persistentVolumeClaim:
claimName: db-pvc
claimName: {{ .Release.Name }}-db-pvc
{{- if .Values.yamlSettings.enabled }}
- name: django-yamlconf
configMap:
Expand Down
25 changes: 25 additions & 0 deletions helm-chart/templates/nfs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: {{ .Release.Name }}-db-nfs
spec:
capacity:
storage: 1Ti
accessModes:
- ReadWriteMany
nfs:
server: {{ .Values.nfs.pv.serverIP | quote }}
path: "/db/{{ .Release.Name }}"
mountOptions: {{ .Values.nfs.pv.mountOptions | toJson }}
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ .Release.Name }}-db-pvc
spec:
accessModes:
- ReadWriteMany
volumeName: {{ .Release.Name }}-db-nfs
resources:
requests:
storage: 1Ti
11 changes: 0 additions & 11 deletions helm-chart/templates/pvc.yaml

This file was deleted.