Resources calculation of a pod with restartable init containers is wrong in kubectl describe nodes
#119406
Labels
kind/bug
Categorizes issue or PR as related to a bug.
sig/node
Categorizes an issue or PR as relevant to SIG Node.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
Projects
What happened?
Resources calculation of a pod with restartable init containers is wrong in
kubectl describe nodes
It does not take into account the restartable init containers.
/cc @SergeyKanzhelev @tzneal
/sig node
ref: #115934
What did you expect to happen?
kubectl describe nodes
should show the right resource requirement considering restartable init containers.How can we reproduce it (as minimally and precisely as possible)?
Create a cluster enabling
SidecarContainers
feature gate.Create a pod with a restartable init container
wait for the pod is running.
kubectl describe node THE_NODE_RUNNING_THAT_POD
The resource requirement should be
500m CPU, 500Mi memory
Anything else we need to know?
No response
Kubernetes version
Cloud provider
OS version
Install tools
Container runtime (CRI) and version (if applicable)
Related plugins (CNI, CSI, ...) and versions (if applicable)
The text was updated successfully, but these errors were encountered: