From 0f90d45e6b86e5659df9e162429bd7789f76138e Mon Sep 17 00:00:00 2001 From: ThanKarab Date: Tue, 12 Dec 2023 16:15:20 +0200 Subject: [PATCH] Increase controller k8s initial delay startup probe. --- .github/workflows/prod_env_tests.yml | 6 +++++- kubernetes/templates/mipengine-controller.yaml | 3 +-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/prod_env_tests.yml b/.github/workflows/prod_env_tests.yml index 6b6b11278..de1735eb2 100644 --- a/.github/workflows/prod_env_tests.yml +++ b/.github/workflows/prod_env_tests.yml @@ -318,9 +318,13 @@ jobs: with: run: kubectl logs -l nodeType=localnode -c node --tail -1 + - name: Wait for CONTROLLER container to become ready + uses: jakejarvis/wait-action@master + with: + time: '60s' + - name: Run Healthcheck run: curl "http://172.17.0.1:5000/healthcheck" - continue-on-error: true # The first healthcheck could fail due to timeouts involved. When it times out, successful or not, everything should be running. - name: Update NodeLandscapeAggregator run: curl -X POST "http://172.17.0.1:5000/nla" diff --git a/kubernetes/templates/mipengine-controller.yaml b/kubernetes/templates/mipengine-controller.yaml index 582f3fdaf..592500090 100644 --- a/kubernetes/templates/mipengine-controller.yaml +++ b/kubernetes/templates/mipengine-controller.yaml @@ -67,14 +67,13 @@ spec: httpGet: path: /healthcheck port: 5000 - initialDelaySeconds: 30 + initialDelaySeconds: 60 periodSeconds: 30 timeoutSeconds: {{ .Values.controller.celery_tasks_timeout }} livenessProbe: httpGet: path: /healthcheck port: 5000 - initialDelaySeconds: 30 periodSeconds: 30 timeoutSeconds: {{ .Values.controller.celery_tasks_timeout }}