From 75746a4b221a081d8d819eb7da8a8c0cde2d649f Mon Sep 17 00:00:00 2001 From: okozachenko Date: Tue, 2 Jun 2020 01:05:48 +0300 Subject: [PATCH] Get resource usage using metrics-server addon Change-Id: I91e96c2fb222b3b94271f8efaaf078c596fc3f7f --- playbooks/functional/post.yaml | 6 +++++- zuul.d/functional-jobs.yaml | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/playbooks/functional/post.yaml b/playbooks/functional/post.yaml index e376b7aa..7e27b22d 100755 --- a/playbooks/functional/post.yaml +++ b/playbooks/functional/post.yaml @@ -18,4 +18,8 @@ roles: - collect-container-logs - collect-kubernetes-logs - + tasks: + - name: Get node resource usage + command: kubectl top nodes + - name: Get pod resource usage + command: kubectl top pods -n openstack diff --git a/zuul.d/functional-jobs.yaml b/zuul.d/functional-jobs.yaml index f9a847aa..fc550fd5 100644 --- a/zuul.d/functional-jobs.yaml +++ b/zuul.d/functional-jobs.yaml @@ -44,6 +44,7 @@ /opt/stack/tempest-horizon docker_use_buildset_registry: true minikube_dns_resolvers: [1.1.1.1, 8.8.8.8] + ensure_kubernetes_minikube_addons: [metrics-server] - project: check: