Skip to content

Commit

Permalink
chore(redis): make redis cache persistent
Browse files Browse the repository at this point in the history
  • Loading branch information
akiva10b committed Feb 5, 2025
1 parent 53d84e2 commit 0ea256d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
7 changes: 7 additions & 0 deletions helm-chart/sefaria/templates/redis-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,10 @@ spec:
ports:
- containerPort: 6379
resources: {{ toYaml .Values.redis.resources | nindent 10 }}
volumeMounts:
- name: redis-data
mountPath: /data
volumes:
- name: redis-data
persistentVolumeClaim:
claimName: redis-pvc
12 changes: 12 additions & 0 deletions helm-chart/sefaria/templates/redis-pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: redis-pvc
labels:
app: redis
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi

0 comments on commit 0ea256d

Please sign in to comment.