diff --git a/dev-upgrade/redis/redis-stack-dev.yaml b/dev-upgrade/redis/redis-stack-dev.yaml index cdca28d..99c6e32 100644 --- a/dev-upgrade/redis/redis-stack-dev.yaml +++ b/dev-upgrade/redis/redis-stack-dev.yaml @@ -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 diff --git a/qa-upgrade/redis/redis-stack.yaml b/qa-upgrade/redis/redis-stack.yaml index bd93007..68e68fa 100644 --- a/qa-upgrade/redis/redis-stack.yaml +++ b/qa-upgrade/redis/redis-stack.yaml @@ -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