From e96ed6f7d3b25216121b5f89af9960576e6e47f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Nussbaumer?= Date: Tue, 12 Dec 2023 14:18:40 +0100 Subject: [PATCH] build(ci): rollout restart the daemonset to "erase" bootstrap errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit during the first start of kubenurse, if the ingress isn't ready yet or if kubenurse makes a check before a kubenurse pod is actually ready, this will result in errors in the logs and this will prevent the pipeline from working correctly. Signed-off-by: Clément Nussbaumer --- .github/workflows/ci-helm-deploy-nginx.yml | 2 ++ .github/workflows/ci-helm-deploy-traefik.yml | 2 ++ .github/workflows/ci-kustomize-deploy.yml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/.github/workflows/ci-helm-deploy-nginx.yml b/.github/workflows/ci-helm-deploy-nginx.yml index ef11b24a..0a17845d 100644 --- a/.github/workflows/ci-helm-deploy-nginx.yml +++ b/.github/workflows/ci-helm-deploy-nginx.yml @@ -56,6 +56,8 @@ jobs: sleep 15 # wait for the scheduler to create pods kubectl -n kube-system wait pods -l app.kubernetes.io/name=kubenurse --for=condition=Ready kubectl -n kube-system get pods -l app.kubernetes.io/name=kubenurse + kubectl rollout restart daemonset kubenurse + kubectl rollout status daemonset kubenurse --timeout=1m sleep 60 # Wait to generate some checks etc. - name: Check deployment uses: ./.github/actions/check-deployment diff --git a/.github/workflows/ci-helm-deploy-traefik.yml b/.github/workflows/ci-helm-deploy-traefik.yml index 0e5d73e4..a27d8824 100644 --- a/.github/workflows/ci-helm-deploy-traefik.yml +++ b/.github/workflows/ci-helm-deploy-traefik.yml @@ -60,6 +60,8 @@ jobs: sleep 15 # wait for the scheduler to create pods kubectl -n kube-system wait pods -l app=kubenurse --for=condition=Ready kubectl -n kube-system get pods -l app=kubenurse + kubectl rollout restart daemonset kubenurse + kubectl rollout status daemonset kubenurse --timeout=1m sleep 60 # Wait to generate some checks etc. - name: Check deployment uses: ./.github/actions/check-deployment diff --git a/.github/workflows/ci-kustomize-deploy.yml b/.github/workflows/ci-kustomize-deploy.yml index 47cef8ff..e90a126f 100644 --- a/.github/workflows/ci-kustomize-deploy.yml +++ b/.github/workflows/ci-kustomize-deploy.yml @@ -52,6 +52,8 @@ jobs: sleep 15 # wait for the scheduler to create pods kubectl wait pods -l app.kubernetes.io/name=kubenurse --for=condition=Ready kubectl get pods -l app.kubernetes.io/name=kubenurse + kubectl rollout restart daemonset kubenurse + kubectl rollout status daemonset kubenurse --timeout=1m sleep 60 # Wait to generate some checks etc. - name: Check deployment uses: ./.github/actions/check-deployment