From 3deb7a199d95b61a657b257244637bcf62309c17 Mon Sep 17 00:00:00 2001 From: Ankur Kothiwal <39901181+Ankurk99@users.noreply.github.com> Date: Mon, 6 Nov 2023 15:43:16 +0530 Subject: [PATCH] fixes for PR 1493 (#1498) Signed-off-by: Ankur Kothiwal --- .../Killercoda-Kubearmor/k3s_installation_killercoda.sh | 5 ++--- .../Killercoda-Kubearmor/kubearmor-installation-view.sh | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/contribution/Killercoda-Kubearmor/k3s_installation_killercoda.sh b/contribution/Killercoda-Kubearmor/k3s_installation_killercoda.sh index a7aceeff66..adcf5c36c5 100755 --- a/contribution/Killercoda-Kubearmor/k3s_installation_killercoda.sh +++ b/contribution/Killercoda-Kubearmor/k3s_installation_killercoda.sh @@ -48,10 +48,9 @@ else echo "export KUBECONFIG=$KUBECONFIG" | tee -a ~/.bashrc fi +sleep 30 echo "Waiting for all pods in kube-system to be in the 'Running' state" - -kubectl wait --for=condition=Ready pod --all --namespace=kube-system --timeout=120s - +kubectl wait --for=condition=Ready pod --all --namespace=kube-system --timeout=300s kubectl get pods -A echo "All pods in kube-system are now in the 'Running' state" diff --git a/contribution/Killercoda-Kubearmor/kubearmor-installation-view.sh b/contribution/Killercoda-Kubearmor/kubearmor-installation-view.sh index 056daa8c76..06d098e572 100755 --- a/contribution/Killercoda-Kubearmor/kubearmor-installation-view.sh +++ b/contribution/Killercoda-Kubearmor/kubearmor-installation-view.sh @@ -10,7 +10,7 @@ kubectl wait --for=condition=ready --timeout=5m -n kubearmor pod -l kubearmor-ap kubectl get po -n $namespace kubectl wait -n kubearmor --timeout=5m --for=jsonpath='{.status.phase}'=Running kubearmorconfigs/kubearmor-default kubectl wait --timeout=5m --for=condition=ready pod -l kubearmor-app,kubearmor-app!=kubearmor-snitch -n kubearmor -kubectl wait --timeout=5m --for=condition=ready pod -l kubearmor-app=kubearmor -n kubearmor +kubectl wait --timeout=5m --for=condition=ready pod -l kubearmor-app=kubearmor,kubearmor-app!=kubearmor-snitch -n kubearmor echo "All pods in namespace '$namespace' are now in the 'Running' state"