OpsPane

Paste a Pod or Deployment: get its QoS class and why, the Pod request with init and sidecar containers, oom_score_adj and how many Pods fit a node.

Node (optional: Pods per node and oom_score_adj)

Deployment web · 3 replicas

QoS class

Burstable

  1. BestEffort
  2. Burstable
  3. Guaranteed
  • init container migrate has a cpu request (500m) but no cpu limit.
4 more reasons
  • sidecar log-shipper has a cpu request (100m) but no cpu limit.
  • sidecar log-shipper has memory request 64Mi ≠ limit 128Mi.
  • container app has cpu request 250m ≠ limit 1.
  • container app has memory request 256Mi ≠ limit 512Mi.
  • info: app has a CPU limit. It becomes a CFS quota: in each 100 ms period the container runs for at most limit × 100 ms of CPU time and is throttled for the rest, even when the node has idle CPU (container_cpu_cfs_throttled_periods_total counts it). Without a limit, the request still sets the container's share when CPU is contended. Guaranteed needs a CPU limit equal to the request.
  • info: Every container sets cpu and memory, so the Pod can be Guaranteed: each request must equal its limit. The fix raises each request to its limit (or sets a missing limit to the request).

Containers, after defaulting

ContainerCPU request / limitMemory request / limit
migrateinit500m / —512Mi / 512Mi
log-shippersidecar100m / —64Mi / 128Mi
appapp250m / 1256Mi / 512Mi

Pod request: the larger of the running Pod and each init step

How the Pod request is computed
PhaseCPUMemory
Init migrate (+ sidecars started before it)500m512Mi
Sidecar log-shipper starts (sidecars so far)100m64Mi
Running: log-shipper + app350m320Mi
Pod request (scheduler)500m512Mi
CPU limit
none (migrate sets no cpu limit)
Memory limit
640Mi
Updated Runs locally in your browser

Quick answer

  • Guaranteed: every container, init and sidecar ones included, sets a cpu and a memory limit and each request equals its limit. A limit alone is enough: it is copied into the request.
  • Burstable: at least one container sets a cpu or memory request or limit, but not every one matches.
  • BestEffort: no container sets any cpu or memory request or limit.
  • oom_score_adj is -997 for Guaranteed, 1000 for BestEffort, and for Burstable 1000 − 1000 × request ÷ capacity, kept between 3 and 999: a 1Gi request on a 16Gi node gives 938.
  • The Pod request is, per resource, the larger of the running containers' sum and the busiest init step.

How to check a Pod's QoS class and requests

  1. Paste a manifest: a Pod, Deployment, StatefulSet, DaemonSet, ReplicaSet, Job or CronJob, several separated by ---, or the kind: List that kubectl get -o yaml prints.
  2. Read the QoS class and the reason for it, then the findings. Where a fix is unambiguous a button applies it to the manifest; Copy manifest takes the result. A structural fix rewrites the YAML, so comments are dropped.
  3. Optionally enter a node's allocatable CPU and memory to see how many Pods fit, and its memory capacity to see each container's oom_score_adj. kubectl describe node prints both under Capacity and Allocatable.

Quantities are read with the same rules as the resource units converter, so 128m of memory, 512MB and CPU in Gi are caught.

Kubernetes resource units converter

QoS classes and how each is decided

Kubernetes gives every Pod one of three classes when it is created, from the cpu and memory requests and limits of all its containers after defaulting. The class sets the kernel's oom_score_adj for the containers and the cgroup the kubelet places them in.

ClassWhenoom_score_adj
GuaranteedEvery container (init and sidecar ones too) sets a cpu and a memory limit, and each request equals its limit. A limit alone is enough: the API server copies it into the request.-997
BurstableNeither of the other two: at least one container sets a cpu or memory request or limit, but not every one matches.3 to 999, from the memory request
BestEffortNo container sets any cpu or memory request or limit. Other resources (ephemeral-storage, GPUs) do not count.1000

The rule runs container by container, init containers first. Any container whose cpu or memory request differs from its limit makes the Pod Burstable at once. A container that sets cpu but not memory is Burstable too. Two containers that are each consistent but different (one with nothing set, one fully set) also give Burstable.

When spec.resources sets a pod-level cpu or memory value (the PodLevelResources feature, beta since v1.34), those pod-level values alone decide the class. A pod-level limit without a pod-level request takes its request from the containers' combined request, not from the limit.

Requests also drive autoscaling: the HorizontalPodAutoscaler reads CPU and memory utilization as a percentage of these requests, so a missing or inflated request changes how many replicas it asks for.

Kubernetes HPA calculator

How the Pod request is computed

The scheduler reserves, for each resource, the larger of two numbers, then adds spec.overhead:

The tool's default manifest has a migrate init container, then a log-shipper sidecar, then the app:

PhaseCPUMemory
Init migrate (no sidecar started yet)500m512Mi
Sidecar log-shipper starts100m64Mi
Running: app + log-shipper350m320Mi
Pod request500m512Mi

The init step wins on both resources, so this Pod needs 500m and 512Mi free on a node to be scheduled, although it runs on 350m and 320Mi. On a node with 3920m CPU and 14Gi allocatable that is 7 Pods by CPU and 28 by memory, so CPU runs out first.

Limits add up the same way, with one rule of their own: the Pod gets a cpu or memory limit only if every container sets one. Here migrate sets no cpu limit, so the Pod's cpu limit is none; its memory limit is 640Mi (512Mi + 128Mi while both run).

How many Pods a node can hold is also capped by its Pod limit; on EKS, by the node's network interfaces.

EKS max Pods per node

Eviction and the OOM killer

Two different things remove Pods when a node runs short of memory, and the class matters to each in a different way.

Kubelet eviction (node pressure)

When available memory falls below an eviction threshold, the kubelet ranks Pods by, in order: whether their usage exceeds their request, their Pod priority, and how far usage exceeds the request. The class is not a sort key, but it decides the first one in practice: BestEffort Pods request nothing, so they always exceed it; Burstable Pods exceed it once they grow past their request; a Guaranteed Pod cannot use more than its limit, which equals its request.

Kernel OOM killer

If memory runs out before the kubelet acts, the kernel kills the process with the highest OOM score: roughly its share of memory in thousandths, plus the oom_score_adj the kubelet set for its container: −997 for Guaranteed, 1000 for BestEffort, and for Burstable 1000 − 1000 × request ÷ capacity. In the example on a 16Gi node, app gets 985, migrate 969, and the sidecar log-shipper 985: a sidecar never scores above the smallest app container, so it is not killed before the app it serves.

The kubelet keeps a Burstable score between 3 and 999. The eviction page of the Kubernetes documentation writes the formula as min(max(2, …), 999); the kubelet code clamps to 1000 + (−997) = 3, so a container requesting all of the node's memory gets 3, which is what this tool shows.

A container that exceeds its own memory limit is OOM-killed by its cgroup regardless of class. CronJob Pods follow the same rules; their template is read from jobTemplate.

Kubernetes CronJob generator

Verification

The engine is a line-by-line port of the Kubernetes source (master branch, read in November 2026). Its unit tests use the vectors from the upstream tests:

Not modelled: LimitRange defaults and ResourceQuota (they live in the cluster, not the manifest), the scheduler's scoring defaults for Pods without requests, hugepages and extended resources such as GPUs.

The engine runs in this tab; nothing you paste is sent anywhere.

FAQ

Why is my Pod Burstable when every container has requests and limits?

Guaranteed needs each request to equal its limit for both cpu and memory, in every container including init containers and sidecars. A single mismatch is enough: for a container with cpu 250m/500m and memory 1Gi/1Gi this tool reports "container app has cpu request 250m ≠ limit 500m."

Does a limit without a request make a Pod Guaranteed?

Yes. When a container sets a limit but no request, the API server copies the limit into the request before anything else sees the Pod. A Pod with only limits of cpu 2 and memory 4Gi is Guaranteed, and kubectl get shows requests of 2 and 4Gi.

How do init containers change the Pod's resource request?

Init containers run one at a time before the app starts, so the scheduler takes, per resource, the larger of the running Pod and the busiest init step. In the example on this page the running Pod asks for 350m CPU and 320Mi, but the migrate init container asks for 500m and 512Mi, so the Pod request is 500m CPU and 512Mi.

Do sidecar containers count toward the Pod request?

Yes, twice over. A native sidecar (an init container with restartPolicy: Always) keeps running, so it is added to the app containers (350m CPU in the example: 250m + 100m), and it also runs beside every init container listed after it.

What oom_score_adj does a Burstable container get?

1000 − 1000 × memory request ÷ node memory capacity, rounded down and kept between 3 and 999. A 1Gi request on a 16Gi node gives 938. Guaranteed containers get −997 and BestEffort ones 1000, so the kernel kills BestEffort processes first when the whole node runs out of memory.

Does the QoS class decide which Pods are evicted first?

Not directly. Under node memory pressure the kubelet ranks Pods by whether their usage exceeds their request, then by Pod priority, then by how far usage exceeds the request. BestEffort Pods request nothing, so any usage puts them first; a Guaranteed Pod using no more than its request comes last.

Why does my Pod have no CPU limit when most containers set one?

The Pod-level cpu or memory limit exists only when every container, init and sidecar ones included, sets that limit. In the example, migrate sets no cpu limit, so the Pod's cpu limit is none while its memory limit is 640Mi.

Private by design

Your input is processed in this browser tab and never sent to our servers. Privacy policy