From 8b0073d8fba1fdfdec31b2df729c230ccafeef2a Mon Sep 17 00:00:00 2001 From: Daniel Imberman Date: Mon, 15 Jun 2020 10:29:28 -0700 Subject: [PATCH] Get all pod logs on k8s launching failure (#9317) Co-authored-by: Daniel Imberman --- scripts/ci/libraries/_kind.sh | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/scripts/ci/libraries/_kind.sh b/scripts/ci/libraries/_kind.sh index 487d6fa88c..b89ea90a9b 100644 --- a/scripts/ci/libraries/_kind.sh +++ b/scripts/ci/libraries/_kind.sh @@ -379,16 +379,8 @@ function dump_kubernetes_logs() { --cluster "${KUBECTL_CLUSTER_NAME}" | grep airflow | head -1) echo "------- pod description -------" kubectl describe pod "${POD}" --cluster "${KUBECTL_CLUSTER_NAME}" - echo "------- webserver init container logs - init -------" - kubectl logs "${POD}" -c init --cluster "${KUBECTL_CLUSTER_NAME}" || true - if [[ "${KUBERNETES_MODE}" == "git" ]]; then - echo "------- webserver init container logs - git-sync-clone -------" - kubectl logs "${POD}" -c git-sync-clone --cluster "${KUBECTL_CLUSTER_NAME}" || true - fi - echo "------- webserver logs -------" - kubectl logs "${POD}" -c webserver --cluster "${KUBECTL_CLUSTER_NAME}" || true - echo "------- scheduler logs -------" - kubectl logs "${POD}" -c scheduler --cluster "${KUBECTL_CLUSTER_NAME}" || true + echo "------- airflow pod logs -------" + kubectl logs "${POD}" --all-containers=true || true echo "--------------" }