From cc3f8c86ffe132b211d17a3f5bfcaab79118c1da Mon Sep 17 00:00:00 2001 From: Serhii Ponomarenko <116438358+tiptophelmet@users.noreply.github.com> Date: Tue, 15 Oct 2024 19:48:11 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Prevent=20`hub`=20host-not-found?= =?UTF-8?q?=20nginx=20upstream=20error=20in=20`front`=20(#1628)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🔧 Add `proxy_next_upstream` to retry finding `hub` * :hammer: Set up `front` init-container to wait for `hub` * Revert "🔧 Add `proxy_next_upstream` to retry finding `hub`" This reverts commit 118b17306940785773dad3090d2441b2700f8d0d. --------- Co-authored-by: Alon Girmonsky <1990761+alongir@users.noreply.github.com> --- helm-chart/templates/06-front-deployment.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/helm-chart/templates/06-front-deployment.yaml b/helm-chart/templates/06-front-deployment.yaml index 25b061d79..c256fd841 100644 --- a/helm-chart/templates/06-front-deployment.yaml +++ b/helm-chart/templates/06-front-deployment.yaml @@ -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: