apps(sharkey): Add redis pv

main
trivernis 11 months ago
parent 5d8d166cfe
commit 36c59bae67
Signed by: Trivernis
GPG Key ID: 7E6D18B61C8D2F4B

@ -44,6 +44,9 @@ spec:
protocol: TCP
- name: redis
image: redis
volumeMounts:
- name: sharkey-redis
mountPath: "/data"
ports:
- containerPort: 6379
name: redis
@ -62,6 +65,9 @@ spec:
- name: sharkey-files
persistentVolumeClaim:
claimName: sharkey-files-pvc
- name: sharkey-redis
persistentVolumeClaim:
claimName: sharkey-redis-pvc
- name: sharkey-config
persistentVolumeClaim:
claimName: sharkey-config-pvc

@ -24,4 +24,5 @@ spec:
GRANT ALL ON DATABASE sharkey TO sharkey;
ALTER DATABASE sharkey OWNER TO sharkey;
GRANT USAGE, CREATE ON SCHEMA public TO sharkey;
GRANT USAGE ON SCHEMA information_schema TO sharkey;

@ -23,3 +23,16 @@ spec:
resources:
requests:
storage: 100Mi
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: sharkey-redis-pvc
namespace: sharkey
spec:
accessModes:
- ReadWriteOnce
storageClassName: "ebs-ssd"
resources:
requests:
storage: 1Gi

Loading…
Cancel
Save