Implements Waiting for Deployments to Finish

This commit is contained in:
2024-10-16 04:36:15 -03:00
parent 7a65a62cf6
commit f7844975e5
3 changed files with 37 additions and 6 deletions

View File

@@ -17,6 +17,17 @@ spec:
spec:
nodeSelector:
${WORKER_NODE_LABEL}
initContainers:
- name: wait-backend-init
image: busybox:latest
args:
- /bin/sh
- -c
- >
set -x;
while [ $(curl -sw '%{http_code}' "backend-service:8000/health" -o /dev/null) -ne 200 ]; do
sleep 15;
done
containers:
- name: frontend
image: yoshiunfriendly/frontend-hideyoshi.com:latest