fix redis rdb

main
ycz008 2023-08-29 16:38:28 +08:00
parent a027ef3fa6
commit 50423b926f
2 changed files with 34 additions and 2 deletions

View File

@ -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

View File

@ -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