fix redis rdb
parent
a027ef3fa6
commit
50423b926f
|
@ -27,10 +27,13 @@ spec:
|
|||
image: redis/redis-stack-server:7.2.0-v0
|
||||
ports:
|
||||
- protocol: TCP
|
||||
containerPort: 8080
|
||||
containerPort: 6379
|
||||
env:
|
||||
- name: "REDIS_ARGS"
|
||||
value: "--requirepass beaconfire@123"
|
||||
volumeMounts:
|
||||
- name: redis-stack-dev
|
||||
mountPath: /data
|
||||
resources:
|
||||
limits:
|
||||
cpu: 1
|
||||
|
@ -54,6 +57,19 @@ spec:
|
|||
periodSeconds: 10
|
||||
successThreshold: 1
|
||||
failureThreshold: 3
|
||||
volumes:
|
||||
- name: redis-stack-dev
|
||||
hostPath:
|
||||
path: /data/dev/redis-stack
|
||||
affinity:
|
||||
nodeAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
nodeSelectorTerms:
|
||||
- matchExpressions:
|
||||
- key: "kubernetes.io/hostname"
|
||||
operator: In
|
||||
values:
|
||||
- bfs-k8snode-10-2-0-13.hetzner.base.beaconfireinc.com
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
|
|
|
@ -27,10 +27,13 @@ spec:
|
|||
image: redis/redis-stack-server:7.2.0-v0
|
||||
ports:
|
||||
- protocol: TCP
|
||||
containerPort: 8080
|
||||
containerPort: 6379
|
||||
env:
|
||||
- name: "REDIS_ARGS"
|
||||
value: "--requirepass beaconfire@123"
|
||||
volumeMounts:
|
||||
- name: redis-stack-qa
|
||||
mountPath: /data
|
||||
resources:
|
||||
limits:
|
||||
cpu: 1
|
||||
|
@ -54,6 +57,19 @@ spec:
|
|||
periodSeconds: 10
|
||||
successThreshold: 1
|
||||
failureThreshold: 3
|
||||
volumes:
|
||||
- name: redis-stack-qa
|
||||
hostPath:
|
||||
path: /data/qa/redis-stack
|
||||
affinity:
|
||||
nodeAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
nodeSelectorTerms:
|
||||
- matchExpressions:
|
||||
- key: "kubernetes.io/hostname"
|
||||
operator: In
|
||||
values:
|
||||
- bfs-k8snode-10-2-0-10.hetzner.base.beaconfireinc.com
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
|
|
Loading…
Reference in New Issue