The current dashboard query shows running + completed pods. That is incorrect since a completed pod has no impact on the running system and will be garbage collected as needed (admins don't need to know it). Instead, the dashboard should show only running pods. As part of 4.7 we added 'kube_running_pod_ready' which covers only non-terminal pods. Change to use this in the console.
*** Bug 1914424 has been marked as a duplicate of this bug. ***
I imagine this change should also be applied to Project Overviews and the Inventory card's Pods row. Clicking "X Pods" in either card should then take the user to the Pods list filtered to exclude any completed/terminal pods.
Found a couple more spots, needs another PR or two.
Putting this back into MODIFIED, the other changes I was referring to will be a separate bug.
project dashboard utilization is using query: count(kube_running_pod_ready{namespace='yapei47'}) BY (namespace) cluster dashboard utilization is using query: count(kube_running_pod_ready) This is VERIFIED against 4.7.0-0.nightly-2021-01-22-134922
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: OpenShift Container Platform 4.7.0 security, bug fix, and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2020:5633