File tree 1 file changed +8
-0
lines changed
tests/e2e/scenarios/bare-metal
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -57,3 +57,11 @@ for vm in 0 1 2; do
57
57
ssh -o StrictHostKeyChecking=accept-new -i ${REPO_ROOT} /.build/.ssh/id_ed25519 root@${ip} journalctl --no-pager -u kubelet 2>&1 > ${ARTIFACTS} /vms/${vm_name} /logs/kubelet.service || true
58
58
ssh -o StrictHostKeyChecking=accept-new -i ${REPO_ROOT} /.build/.ssh/id_ed25519 root@${ip} journalctl --no-pager -u kops-configuration 2>&1 > ${ARTIFACTS} /vms/${vm_name} /logs/kops-configuration.service || true
59
59
done
60
+
61
+ # Dump the pod logs for all the pods in system namespaces
62
+ for ns in kube-system; do
63
+ mkdir -p ${ARTIFACTS} /logs/${ns} /
64
+ for pod in $( kubectl get pods -n ${ns} -o json | jq -r ' .items[].metadata.name' ) ; do
65
+ kubectl logs -n ${ns} ${pod} > ${ARTIFACTS} /logs/${ns} /${pod} .log || true
66
+ done
67
+ done
You can’t perform that action at this time.
0 commit comments