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 protocol: TCP
- name: redis - name: redis
image: redis image: redis
volumeMounts:
- name: sharkey-redis
mountPath: "/data"
ports: ports:
- containerPort: 6379 - containerPort: 6379
name: redis name: redis
@ -62,6 +65,9 @@ spec:
- name: sharkey-files - name: sharkey-files
persistentVolumeClaim: persistentVolumeClaim:
claimName: sharkey-files-pvc claimName: sharkey-files-pvc
- name: sharkey-redis
persistentVolumeClaim:
claimName: sharkey-redis-pvc
- name: sharkey-config - name: sharkey-config
persistentVolumeClaim: persistentVolumeClaim:
claimName: sharkey-config-pvc claimName: sharkey-config-pvc

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

@ -23,3 +23,16 @@ spec:
resources: resources:
requests: requests:
storage: 100Mi 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