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: