Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set CPU metrics for init containers under containerd
Copies PR kubernetes#76503 for release-1.11. metrics-server doesn't return metrics for pods with init containers under containerd because they have incomplete CPU metrics returned by the kubelet /stats/summary API. This problem has been fixed in 1.14 (kubernetes#74336), but the cherry-picks dropped the usageNanoCores metric. This change adds the missing usageNanoCores metric for init containers in Kubernetes v1.11. Fixes kubernetes#76292
- Loading branch information