try to fix frontend
This commit is contained in:
parent
32cf8cc602
commit
230c9fc804
@ -17,6 +17,19 @@ spec:
|
|||||||
app: {{ .Release.Name }}-{{ .Values.frontend.name }}
|
app: {{ .Release.Name }}-{{ .Values.frontend.name }}
|
||||||
component: frontend
|
component: frontend
|
||||||
spec:
|
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:
|
containers:
|
||||||
- name: {{ .Values.frontend.name }}
|
- name: {{ .Values.frontend.name }}
|
||||||
image: "{{ .Values.frontend.image.repository }}:{{ .Values.frontend.image.tag }}"
|
image: "{{ .Values.frontend.image.repository }}:{{ .Values.frontend.image.tag }}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user