McKube 0 requests sent

InitContainer Resource Math: Why Pods Stay Pending

The exact Kubernetes formula max(sum(containers), max(initContainers)) that explains mysterious scheduling bottlenecks.

InitContainers run sequentially before app containers

Because initContainers run one by one and exit before regular containers start, kube-scheduler does not add them to regular containers. Instead, the Pod's effective request for each resource (CPU, memory, ephemeral-storage) is max(sum of regular containers, highest single initContainer). If two 512Mi sidecar/app containers sum to 1Gi, but a database migration initContainer requests 2Gi, the scheduler reserves 2Gi on the node for the entire lifetime of the Pod.

Impact on QoS class

Do not forget initContainers when aiming for Guaranteed QoS: if every regular container sets requests == limits but one initContainer omits limits, the entire Pod drops from Guaranteed to Burstable.