Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Report CPU usageNanoCores for pods/containers in summary API on Windows #72788
On Windows, kubelet reports only the cumulative
On Linux, kubelet reports both
Although In the future, most components/monitoring pipelines will switch to using the cumulative metrics, a few features still depend on the instantaneous
Documentation on metrics API and metrics server (i.e., the aggregator): https://kubernetes.io/docs/tasks/debug-application-cluster/core-metrics-pipeline/
The metrics-server pod keeps spewing errors like this:
# Against a Linux pod $ kubectl top pod ubuntu NAME CPU(cores) MEMORY(bytes) ubuntu 0m 0Mi # Against a Windows pod $ kubectl top pod foo-server Error from server (NotFound): podmetrics.metrics.k8s.io "default/foo-server" not found
I haven't verified whether pod autoscaling works in my cluster, but I assume they won't since metrics server seems to discard the metrics from the windows pods.
I believe the implementation is in kubelet (for the docker integration), so this should not need CRI changes.