@ -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
claimName: sharkey-redis-pvc
- name: sharkey-config
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"
storage: 1Gi