fix(k01): correct redis wait condition and serialize ratelimit on rl-redis
build-and-push-harbor / docker-build-push (push) Waiting to run

This commit is contained in:
zetaloop
2026-05-06 04:49:37 +08:00
parent a3174d16d0
commit b9ff1f043d
2 changed files with 6 additions and 1 deletions
+2 -1
View File
@@ -35,7 +35,8 @@ kubectl -n juwan wait --for=condition=Ready pod -l app=envoy-gateway --timeout=1
kubectl -n juwan wait --for=condition=Ready pod -l "app in (ratelimit,rl-redis)" --timeout=120s || true kubectl -n juwan wait --for=condition=Ready pod -l "app in (ratelimit,rl-redis)" --timeout=120s || true
echo redis echo redis
apply_docs "${INFRA_DIR}/redis.yaml" redisreplication "jsonpath={.status.readyReplicas}=1" apply_docs "${INFRA_DIR}/redis.yaml" "" ""
kubectl -n juwan wait --for=condition=Ready pod -l redis_setup_type=replication --timeout=600s || true
echo postgres echo postgres
apply_docs "${INFRA_DIR}/postgres.yaml" cluster.postgresql.cnpg.io "condition=Ready" apply_docs "${INFRA_DIR}/postgres.yaml" cluster.postgresql.cnpg.io "condition=Ready"
+4
View File
@@ -97,6 +97,10 @@ spec:
labels: labels:
app: ratelimit app: ratelimit
spec: spec:
initContainers:
- name: wait-rl-redis
image: busybox:1.37
command: ["sh", "-c", "until nc -z rl-redis-svc 6379; do sleep 1; done"]
containers: containers:
- name: ratelimit - name: ratelimit
image: envoyproxy/ratelimit:fe26676d image: envoyproxy/ratelimit:fe26676d