mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-04-27 19:47:31 +00:00
🐛 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:
parent
99aff8d513
commit
cc3f8c86ff
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user