feat(redis): add persistent volume for trading-redis
Replace emptyDir with 10Gi PVC (ReadWriteOnce) so hot cache survives pod restarts.
This commit is contained in:
parent
7e55874faf
commit
c587a707a6
1 changed files with 16 additions and 1 deletions
|
|
@ -1,5 +1,19 @@
|
||||||
# Redis single-instance for trading platform caching
|
# Redis single-instance for trading platform caching
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: trading-redis-pvc
|
||||||
|
namespace: customer1
|
||||||
|
labels:
|
||||||
|
app: trading-redis
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 10Gi
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: trading-redis
|
name: trading-redis
|
||||||
|
|
@ -100,4 +114,5 @@ spec:
|
||||||
configMap:
|
configMap:
|
||||||
name: trading-redis-config
|
name: trading-redis-config
|
||||||
- name: data
|
- name: data
|
||||||
emptyDir: {}
|
persistentVolumeClaim:
|
||||||
|
claimName: trading-redis-pvc
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue