From 6809eabb85fdcf5004ec4b742676ae392efea9cb Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Sun, 28 Apr 2024 17:36:55 +0200 Subject: [PATCH] Reduce system pod startup timeout from 10m to 5m Typically, this takes less than a minute. I figure some margin is nice in case a container registry is slow or similar, but 10m is more than required and 5m should suffice. --- action.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/action.yml b/action.yml index 8262fd8..7b13c7e 100644 --- a/action.yml +++ b/action.yml @@ -192,20 +192,20 @@ runs: - name: Wait for calico, coredns, metrics server, traefik run: | echo "::group::Wait for daemonset/calico-node" - kubectl rollout status --watch --timeout 600s daemonset/calico-node -n kube-system + kubectl rollout status --watch --timeout=5m daemonset/calico-node -n kube-system echo "::endgroup::" echo "::group::Wait for deployment/calico-kube-controllers" - kubectl rollout status --watch --timeout 600s deployment/calico-kube-controllers -n kube-system + kubectl rollout status --watch --timeout=5m deployment/calico-kube-controllers -n kube-system echo "::endgroup::" echo "::group::Wait for deployment/coredns" - kubectl rollout status --watch --timeout 600s deployment/coredns -n kube-system + kubectl rollout status --watch --timeout=5m deployment/coredns -n kube-system echo "::endgroup::" echo "::group::Wait for deployment/metrics-server" if [[ "${{ inputs.metrics-enabled }}" == true ]]; then - kubectl rollout status --watch --timeout 600s deployment/metrics-server -n kube-system + kubectl rollout status --watch --timeout=5m deployment/metrics-server -n kube-system fi echo "::endgroup::" @@ -214,9 +214,9 @@ runs: # NOTE: Different versions of k3s install traefik in different ways, # by waiting for these jobs if they exist, we will be fine no # matter what. - kubectl wait --for=condition=complete --timeout=600s job/helm-install-traefik-crd -n kube-system || true - kubectl wait --for=condition=complete --timeout=600s job/helm-install-traefik -n kube-system || true - kubectl rollout status --watch --timeout 600s deployment/traefik -n kube-system + kubectl wait --for=condition=complete --timeout=5m job/helm-install-traefik-crd -n kube-system || true + kubectl wait --for=condition=complete --timeout=5m job/helm-install-traefik -n kube-system || true + kubectl rollout status --watch --timeout=5m deployment/traefik -n kube-system fi echo "::endgroup::" shell: bash