🐛 Prevent hub host-not-found nginx upstream error in front (#1628)

* 🔧 Add `proxy_next_upstream` to retry finding `hub`

* 🔨 Set up `front` init-container to wait for `hub`

* Revert "🔧 Add `proxy_next_upstream` to retry finding `hub`"

This reverts commit 118b173069.

---------

Co-authored-by: Alon Girmonsky <1990761+alongir@users.noreply.github.com>
This commit is contained in:
Serhii Ponomarenko 2024-10-15 19:48:11 +03:00 committed by GitHub
parent 99aff8d513
commit cc3f8c86ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -106,6 +106,17 @@ spec:
mountPath: /etc/nginx/conf.d/default.conf
subPath: default.conf
readOnly: true
initContainers:
- name: wait-for-kubeshark-hub
image: busybox
command:
- sh
- -c
- |
until nc -z kubeshark-hub 80; do
echo "Waiting for kubeshark-hub to be ready..."
sleep 5
done
volumes:
- name: nginx-config
configMap: