fix(k01): correct redis wait condition and serialize ratelimit on rl-redis
build-and-push-harbor / docker-build-push (push) Waiting to run
build-and-push-harbor / docker-build-push (push) Waiting to run
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user