Add tracing of the kubernetes cluster during testing (#608)

* Add tracing of the kubernetes cluster during testing

This adds tracing to the testing to get the kubelet's logs upon
failure. In addition, it keeps track of the pods, and the node
statuses throughout the test.

* Add arguments to make virtual kubelet's log more useful
This commit is contained in:
Sargun Dhillon
2019-05-13 13:23:32 -07:00
committed by Brian Goff
parent ae5e7953fe
commit c50f33e701
2 changed files with 20 additions and 0 deletions

View File

@@ -98,10 +98,23 @@ jobs:
until kubectl get nodes -o jsonpath="$JSONPATH" 2>&1 | grep -q "Ready=True"; do
sleep 1;
done
- run:
name: Watch pods
command: kubectl get pods -o json --watch
background: true
- run:
name: Watch nodes
command: kubectl get nodes -o json --watch
background: true
- run:
name: Run the end-to-end test suite
command: |
make e2e
- run:
name: Collect logs on failure from vkubelet-mock-0
command: |
kubectl logs vkubelet-mock-0
when: on_fail
workflows:
version: 2

View File

@@ -16,6 +16,13 @@ spec:
- mock
- --provider-config
- /vkubelet-mock-0-cfg.json
- --startup-timeout
- 10s
- --klog.v
- "2"
- --klog.logtostderr
- --log-level
- debug
ports:
- name: metrics
containerPort: 10255