mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-07-14 00:24:48 +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
|
mountPath: /etc/nginx/conf.d/default.conf
|
||||||
subPath: default.conf
|
subPath: default.conf
|
||||||
readOnly: true
|
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:
|
volumes:
|
||||||
- name: nginx-config
|
- name: nginx-config
|
||||||
configMap:
|
configMap:
|
||||||
|
Loading…
Reference in New Issue
Block a user