try to fix frontend

This commit is contained in:
dvirlabs 2025-12-17 08:03:04 +02:00
parent 32cf8cc602
commit 230c9fc804

View File

@ -17,6 +17,19 @@ spec:
app: {{ .Release.Name }}-{{ .Values.frontend.name }}
component: frontend
spec:
initContainers:
- name: wait-for-backend
image: busybox:1.35
command:
- /bin/sh
- -c
- |
echo "Waiting for backend to be ready..."
until wget -q -O- http://{{ .Release.Name }}-{{ .Values.backend.name }}:{{ .Values.backend.service.port }}/health > /dev/null 2>&1; do
echo "Backend not ready, waiting..."
sleep 2
done
echo "Backend is ready!"
containers:
- name: {{ .Values.frontend.name }}
image: "{{ .Values.frontend.image.repository }}:{{ .Values.frontend.image.tag }}"