feat(shared-sqs): Redis write-through persistence, RollingUpdate deploy (v0.1.11)

This commit is contained in:
“Naeel”
2026-04-10 07:22:41 +03:00
parent ab1e47bd35
commit c9bce7e751
13 changed files with 343 additions and 18 deletions
+22 -4
View File
@@ -1,6 +1,6 @@
# deployments/k8s/deployment.yaml
# Deployment shared-sqs — strategy Recreate (in-memory state, Trap #14)
# Updated: 2026-04-09
# Deployment shared-sqs — strategy RollingUpdate (теперь возможен т.к. Redis хранит состояние)
# Updated: 2026-04-10 — добавлена Redis persistence, Recreate → RollingUpdate
apiVersion: apps/v1
kind: Deployment
metadata:
@@ -11,7 +11,10 @@ metadata:
spec:
replicas: 1
strategy:
type: Recreate
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
selector:
matchLabels:
app: shared-sqs
@@ -22,7 +25,7 @@ spec:
spec:
containers:
- name: shared-sqs
image: naeel/shared-sqs:v0.1.8
image: naeel/shared-sqs:v0.1.11
ports:
- containerPort: 4100
name: http
@@ -34,6 +37,21 @@ spec:
key: token
- name: SHARED_SQS_SEED_DEMO
value: "true"
- name: REDIS_ADDR
valueFrom:
secretKeyRef:
name: shared-sqs-redis
key: addr
- name: REDIS_USER
valueFrom:
secretKeyRef:
name: shared-sqs-redis
key: user
- name: REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: shared-sqs-redis
key: password
resources:
requests:
memory: "64Mi"