Pcornel
Browse topics
Options
Recent
Favorites
Containers · Technical reference

Scheduling, Resources & Health

Direct answer

Scheduling, resources and health: the scheduler places pods on nodes that fit their requests, affinity and tolerations; limits cap usage; probes tell Kubernetes when a container is alive and ready.

When to use this

Use it when pods are Pending, get OOMKilled or throttled, or restart because of probes.

First 30 seconds

1. Pending → kubectl describe pod scheduling events.

2. OOMKilled → kubectl get pod -o jsonpath='{.status.containerStatuses[*].lastState}'.

3. Usage vs requests: kubectl top pod.

4. Probe failures in events.

5. Adjust requests/limits/probes.

Operational verification

pod requests → scheduler filters/scores nodes → bound → kubelet enforces limits → probes report health

Evidence · next step

Common failures are impossible affinity rules, untolerated taints, oversized requests, CPU throttling, memory OOMKills, liveness probes causing restart storms, readiness probes masking dependency failures and node pressure triggering evictions. Preserve the first divergent observation and repeat the same bounded verification after remediation.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
What not to infer

Containers owns Kubernetes scheduling/resource/probe semantics. Linux owns host resource/kernel depth; Observability owns long-term resource telemetry and alerting.

Platform / version applicability
Docker / containerd / Podman / Kubernetes / OCI-compatible platforms
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformDocker / containerd / Podman / Kubernetes / OCI-compatible platforms · Containers owns Kubernetes scheduling/resource/probe semantics. Linux owns host resource/kernel depth; Observability owns long-term resource telemetry and alerting.
Scope / prerequisiteUse it when pods are Pending, get OOMKilled or throttled, or restart because of probes.
What next?3 suggested next steps
Child topics (this level)4
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification workflow Verify boundary

For a Pending or unstable Pod, inspect scheduler events, requests, selectors/affinity, taints/tolerations and node allocatable resources. For a running Pod, compare limits/usage, QoS, OOM/eviction history and probe results; verify readiness from the consumer path rather than only from kubelet.

Step 2 Failure signatures and limits Narrow the fault

Common failures are impossible affinity rules, untolerated taints, oversized requests, CPU throttling, memory OOMKills, liveness probes causing restart storms, readiness probes masking dependency failures and node pressure triggering evictions.

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

test · 1
Drill down

Subtopics

Go one level deeper into this subject.

Key points

Set requests to real usage and memory limits to protect nodes. A memory limit hit → OOMKilled (exit 137). Readiness gates traffic; liveness restarts; startup protects slow starts.

Key checks
  • kubectl top pod — current CPU/memory use
  • kubectl get pods -o wide — pods, status, node, IP
  • kubectl describe pod <pod> — events and conditions
  • kubectl logs <pod> [-c <c>] [--previous] — container logs (incl. previous crash)
  • kubectl get events --sort-by=.lastTimestamp — recent cluster events
ReferenceWhat it is1 section · depth on demand

Operating model

Scheduling, Resources & Health explains how Kubernetes decides where Pods can run, how much CPU/memory they may request or consume, and how probes/eviction signals influence traffic and restart behavior. Scheduling feasibility, runtime resource pressure and application health are separate layers.

ReferenceHow it works1 section · depth on demand

In depth

Scheduling, resources and health determine where pods run, how much CPU and memory they get, and how Kubernetes decides they are working. Wrong settings cause pending pods, OOM kills, throttling and traffic sent to unready instances.

SettingEffect
resources.requestsUsed for scheduling; guaranteed share
resources.limitsMaximum; memory over limit → OOMKilled, CPU over limit → throttled
Node selectors, affinity, taints/tolerationsControl placement
Topology spread constraintsSpread replicas across zones/nodes
PodDisruptionBudgetKeep minimum replicas during maintenance
Readiness probeReceive traffic only when ready
Liveness probeRestart when stuck
Startup probeGive slow starters time before liveness checks
kubectl describe pod <pod> | grep -A5 -E 'Requests|Limits|Events'
kubectl top pods -n apps
kubectl get events -n apps --field-selector reason=FailedScheduling

Set requests from measured usage, use memory limits to protect nodes, and keep liveness probes conservative — aggressive liveness checks cause restart loops under load.

ReferenceImportant terms & boundaries1 section · depth on demand

Scope map

  • Requests and limits
  • QoS classes
  • Node selectors
  • Affinity/anti-affinity
  • Taints and tolerations
  • Liveness/readiness/startup probes
  • Eviction and node pressure
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical examples

Configuration & expected output

Concrete examples are shown only when the stored reference contains an actual configuration or output shape for this Topic.

Configuration example

Kubernetes Kubernetes 1.28 or laterRequests, limits and liveness/readiness probes for one container.

Assumptions: Replace values with measured usage for the workload.

resources:
  requests: {cpu: 250m, memory: 256Mi}
  limits: {memory: 512Mi}
livenessProbe:
  httpGet: {path: /livez, port: 8080}
  initialDelaySeconds: 10
  periodSeconds: 10
readinessProbe:
  httpGet: {path: /readyz, port: 8080}
  periodSeconds: 5

Expected output

Kubernetes Kubernetes 1.28 or laterkubectl describe node worker-1 | sed -n '/Allocated resources/,/Events/p'

Expected state: Requested CPU and memory stay below allocatable capacity, so new Pods can still be scheduled.

Allocated resources:
  Resource           Requests      Limits
  --------           --------      ------
  cpu                1850m (46%)   500m (12%)
  memory             2304Mi (30%)  4096Mi (53%)
The scheduler uses requests, not live usage. A memory limit that is too low shows up as OOMKilled in the Pod's last state. Illustrative authored output: field layout matches the tool, values will differ in your environment.
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-29 · otherOCI / Docker / containerd / Kubernetes Kubernetes current documentation

Documentation verification: confirms the upstream model used by the Topic. It does not assert local production behavior.

Basis: https://kubernetes.io/docs/concepts/scheduling-eviction/ · confidence 92%
Technical changelog & impact

What changed and what may be affected

Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
scheduling, resources & healthKubernetes requests limitsKubernetes probestaints tolerationsKubernetes scheduling
Embedded reference data

Quick lookup tables

Scheduling, Resources & Health verification boundary matrix

A compact lookup separating intent, owning component state, effective state and consumer-visible outcome for Scheduling, Resources & Health.

BoundaryInspectHealthy interpretationDo not infer
IntentRequests and limitsIntended object/scope is explicit and versioned where relevantIntent is already effective
Owning runtime/control planeQoS classes / Node selectorsOwner accepts and reports the expected object stateDownstream dependencies are healthy
Effective stateAffinity/anti-affinityIndependent read-back matches the intended stateEvery client sees the same result
Consumer outcomeTaints and tolerationsThe original bounded check succeeds in the same time windowProduction correctness outside this scope
Depth when you need it

Deep reference

Design & tradeoffs

Scope

Containers owns Kubernetes scheduling/resource/probe semantics. Linux owns host resource/kernel depth; Observability owns long-term resource telemetry and alerting.

Confirmation

Confirm action

Continue?