[skip ci] Add k8s log for github action (#8796)

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
This commit is contained in:
zhuwenxing 2021-09-28 19:50:03 +08:00 committed by GitHub
parent 4f3c40be1f
commit 398ff27aa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,6 +66,15 @@ jobs:
- name: Verify Pod Kill
if: ${{ always() }}
shell: bash
working-directory: tests/python_client/chaos
run: |
#in this step, we can verify whether pod has been killed by pod's age
kubectl get po -n chaos-testing |grep "milvus-chaos"
kubectl get po -n chaos-testing |grep "milvus-chaos"
kubectl logs -l app.kubernetes.io/instance=my-release -n chaos-testing > log_info.log
- name: Upload logs
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: logs-${{ matrix.pod }}
path: tests/python_client/chaos/log_info.log