Scheduling and nodesLesson 1 of 10
  1. Requests, limits and quotas, not reconciled
    1. Requests reserve, limits cap
    2. CPU is compressible
    3. Memory is not
    4. Units
    5. LimitRange
    6. ResourceQuota
    7. FailedCreate
    8. Pod-level resources (beta since 1.34)
  2. QoS classes and node-pressure eviction, not reconciled
  3. cgroups, memory pressure and the OOM killer, not reconciled
  4. How the scheduler places a pod, not reconciled
  5. Affinity, taints and tolerations, not reconciled
  6. Topology spread constraints, not reconciled
  7. Priority and preemption, not reconciled
  8. Nodes and the kubelet, not reconciled
  9. Disruptions and PodDisruptionBudgets, not reconciled
  10. Cluster autoscaling, not reconciled

Requests, limits and quotas

Requests decide where a pod fits, limits decide what the kernel enforces, and LimitRanges and ResourceQuotas set the rules for a whole namespace. Learn to predict throttling, OOM kills and refused pods.

  • 20 min
  • 4 objectives
  • 8 scenes

Shows the lesson one block at a time. Arrow keys step, number keys jump to a scene, and Escape returns to the page where you were.

Reconcile, in 8 scenes

Requests reserve, limits cap

Every container can declare two numbers per resource. A requestThe amount of a resource the scheduler sets aside for a container on its node. The scheduler places a pod only where the requests of the pods on the node, this one included, fit within the node’s allocatable capacity. is a reservation, and a limitThe ceiling the kernel enforces on a running container, through the cgroup the kubelet creates for it. is a cap. They are read by different components at different times:

  • The scheduler places by requests, once. To place a pod it adds up the requests of the pod’s containers and looks for a node where that total fits under the node’s allocatable capacity minus the requests of the pods already bound there. It never looks at actual usage. A node running at 95% CPU with few requests still looks empty to it; a node idling at 5% whose pods requested everything looks full.
  • The kubelet and the kernel enforce limits, all the time. The kubelet writes limits into the container’s cgroup, and the kernel enforces them on every CPU period and every memory allocation. Requests reach the cgroup too, as the CPU section shows.
resources:
  requests:
    cpu: 250m
    memory: 256Mi
  limits:
    memory: 256Mi

This is a common production shape: a CPU request, no CPU limit, and a memory limit equal to the memory request. The reasons are in the next two sections.

Two defaulting rules explain most surprises. If a container sets a limit and no request, and nothing at admission supplies a default, the API server copies the limit into the request, so limits.memory: 1Gi alone reserves 1Gi. If a container sets neither, its request is zero: the resource check lets it onto any node with a free pod slot, and on a busy node it gets only the CPU and memory that others leave unused.

Requests matter beyond scheduling. The node-pressure eviction you meet in the next lesson ranks pods first by whether their usage exceeds their requests, and the HorizontalPodAutoscaler measures CPU utilization as a percentage of the request. An HPA targeting 70% utilization on pods that request 100m but steadily use 300m sees 300% and scales out hard; the same pods with honest requests scale calmly. By default the HPA ignores changes within a 10% tolerance, waits through a 300-second stabilization window before scaling down, and scales up with no stabilization window, adding at most the larger of 100% of the current replicas or 4 pods every 15 seconds. The per-HPA tolerance field in spec.behavior is GA in Kubernetes 1.37.

CPU is compressible

CPU time can be taken away from a process and given back without losing anything, so the kernel can enforce CPU settings by scheduling alone.

A CPU request becomes a weight on the container’s cgroup (cpu.weight under cgroup v2). Weights only matter under contention: when every container on the node wants more CPU than exists, each gets a share in proportion to its request. When the node has idle cores, a container can use far more than its request.

A CPU limit becomes a quota of CPU time per period, the kernel’s CFS bandwidth control (cpu.max under cgroup v2). With the default 100 ms period, limits.cpu: 500m means 50 ms of CPU time per 100 ms, summed across all the container’s threads. A multithreaded process can burn its whole quota in the first 10 ms of the period on five cores and then sit paused for the remaining 90 ms, even while the node has idle CPUs. That pause is throttlingThe kernel pausing a cgroup that has used its CPU quota for the current period until the next period begins., and it shows up as tail latency, not as an error.

Nothing is ever killed for using CPU. Throttling has a common second-order effect, though: a liveness probe has a timeoutSeconds that defaults to 1 second, and a throttled container that cannot answer within that second fails the probe. Three failures in a row and the kubelet restarts a container that was only slow.

Many teams set CPU requests and leave CPU limits off. The request still guarantees each container its share under contention, and idle CPU is used instead of wasted. Set a CPU limit when you need a hard ceiling: a noisy batch job on shared nodes, a namespace whose LimitRange requires one, or the Guaranteed QoS class, which needs CPU limits equal to CPU requests.

Open the x-ray on one of api’s pods at the cgroup layer: each container’s cpu.weight, cpu.max and memory.max sit beside the request and limit that produced them.

ExplainerThe Linux under a pod

api-6cb8f8448d-5t86mBurstable pod in team-a on kx-worker2, IP 10.244.2.2

Six layers sit under this pod. Press X-ray to lift them apart.

cgroupon kx-worker2

docker exec kx-worker2 cat /sys/fs/cgroup/kubelet.slice/kubelet-kubepods.slice/kubelet-kubepods-burstable.slice/kubelet-kubepods-burstable-poda68151e9_5999_4e80_8a95_f8947a272495.slice/cri-containerd-96783e6e7ce0196a0593f51b46e4c5d1401e431629cdfe26820d67837ca09f05.scope/memory.max
268435456

The only layer kubectl shows. Everything under it exists because the kubelet on kx-worker2 turned this object into calls to containerd: a sandbox, then a container for each entry in spec.containers.containerd starts the pause process first. It holds the network, UTS and IPC namespaces every container in the pod joins, so they share one IP, localhost and a hostname.The container is these processes: PID 1 inside it is pid 656 on the node, with 4 more. It has its own mount, PID and cgroup namespaces and joins the sandbox's others.With no limits.cpu, cpu.max is max 100000, no ceiling, and requests.cpu 500m became 512 shares and cpu.weight 59. The dashed box is memory.max, 256 MiB, from limits.memory; the fill is memory.current.kindnet's ptp plugin made a veth pair: eth0 inside the pod and veth50ff6c9a on the node, with a /32 route to 10.244.2.2 through it. kube-proxy's DNAT sends Service traffic down the same route.The root is an overlay of read-only image layers under one writable layer that goes when the container does. Volumes are bind mounts from the node's disk, or tmpfs for Secrets and the service account token.

Cluster starting
Press X-ray to lift the pod apart into the six Linux layers under it, then pick one to see the command that shows it on the node and what that command prints. Put on prompt puts the command in the lesson terminal for you to run.

Memory is not

Memory cannot be taken back from a process without destroying what it holds. When a container tries to allocate past its memory limit and the kernel cannot reclaim enough page cache inside the container’s cgroup, the kernel’s out-of-memory killer acts. On cgroup v2 nodes the kubelet sets memory.oom.group on each container’s cgroup, so the kernel kills every process in the container together; setting singleProcessOOMKill: true in the kubelet configuration makes it kill one process at a time, as on cgroup v1. The program gets no error to handle; it receives SIGKILL. The kubelet records the container as terminated with reason OOMKilled and exit code 137 (128 plus signal 9).

The pod’s restartPolicy defaults to Always for every pod, so the kubelet starts the container again in the same pod on the same node. A workload whose steady-state memory sits above its limit is killed each time it warms up, and the restarts fall into the crash-loop back-off: 10 seconds, doubling up to 5 minutes.

apiVersion: v1
kind: Pod
metadata:
  name: cache
spec:
  containers:
    - name: cache
      image: ghcr.io/kx-labs/leaky:1.0
      resources:
        requests:
          cpu: 100m
          memory: 64Mi
        limits:
          memory: 128Mi

The leaky image in the simulator grows its cache without bound, so it reaches 128Mi about twelve seconds after it starts:

A container that outgrows its memory limit
kubectl apply -f cache.yaml
pod/cache created
kubectl get pod cache
NAME    READY   STATUS      RESTARTS   AGE
cache   0/1     OOMKilled   0          16s
kubectl get pod cache
NAME    READY   STATUS             RESTARTS     AGE
cache   0/1     CrashLoopBackOff   1 (5s ago)   34s
kubectl get pod cache -o jsonpath='{.status.containerStatuses[0].lastState.terminated}'
{"containerID":"containerd://264dbff88e21e866d7cbad15e545db21d8d732602580c21a17b704dd83f5e755","exitCode":137,"finishedAt":"2026-11-19T09:00:59Z","reason":"OOMKilled","startedAt":"2026-11-19T09:00:47Z"}

Look at lastState, not state: by the time you look, the container has usually restarted and state says Running or waiting. Exit code 137 alone does not prove an OOM kill, because a liveness-probe kill that outlasts the grace period also ends in SIGKILL; the reason field tells the two apart. The pod’s phase stays Running throughout, because the pod itself never failed.

The fix is a limit that fits the workload’s real footprint, found by measuring working-set memory over a representative period. Setting the memory request equal to the limit is the safe default: the scheduler then reserves everything the container is allowed to use, and the node cannot be overcommitted on memory by this pod.

Units

CPU is measured in cores: 1 is one physical core or one virtual CPU, depending on the node. Fractions are written in millicores, so 0.5 and 500m are the same request, and 100m is a tenth of a core. Kubernetes does not accept a precision finer than 1m.

Memory is measured in bytes, with decimal suffixes (k, M, G, T) and binary ones (Ki, Mi, Gi, Ti). 128Mi is 134,217,728 bytes; 128M is 128,000,000 bytes, about 5% less. Pick one family and use it everywhere, since mixed suffixes make totals hard to compare. Case matters: 400m of memory is 0.4 bytes, not 400 mebibytes, and the API server accepts it.

A third resource, ephemeral-storage, covers a container’s writable layer, its logs and its emptyDir volumes on the node’s disk. Requests reserve node disk for scheduling. If a container’s writable layer and logs exceed its ephemeral-storage limit, or the pod’s total exceeds the sum of its containers’ limits, the kubelet evicts the pod. That is harsher than an OOM kill: the pod fails for good, and only its controller can replace it, where an OOM-killed container restarts in place.

LimitRange

Requests and limits are per container, which leaves every team to remember them. A LimitRangeA namespaced policy object that injects default requests and limits into containers that omit them, and rejects pods outside per-container or per-pod bounds. sets the rules for one namespace. The LimitRanger admission plugin, enabled by default, applies them in two passes when a pod is created:

  1. Defaults. For each container that omits a value, it fills in defaultRequest and default (the default limit).
  2. Validation. It rejects the pod with 403 Forbidden if any container falls outside min or max, or exceeds maxLimitRequestRatio. A type: Pod entry applies the same checks to the sum over the pod’s containers, and a type: PersistentVolumeClaim entry bounds storage requests.
apiVersion: v1
kind: LimitRange
metadata:
  name: defaults
  namespace: team-a
spec:
  limits:
    - type: Container
      defaultRequest:
        cpu: 250m
        memory: 128Mi
      default:
        memory: 256Mi
      max:
        memory: 1Gi

The quota in this lesson’s team-a is full, so the transcript scales api down by one and waits for the pod to go before it creates a pod with no resources of its own.

LimitRanger fills in what the pod left out
kubectl apply -f limits.yaml
limitrange/defaults created
kubectl -n team-a scale deployment api --replicas=3
deployment.apps/api scaled
kubectl -n team-a wait --for=delete pod/api-6cb8f8448d-5t86m --timeout=60s
pod/api-6cb8f8448d-5t86m condition met
kubectl -n team-a run probe --image=nginx:1.30
pod/probe created
kubectl -n team-a get pod probe -o jsonpath='{.spec.containers[0].resources}'
{"limits":{"memory":"256Mi"},"requests":{"cpu":"250m","memory":"128Mi"}}
kubectl -n team-a get pod probe -o jsonpath='{.metadata.annotations.kubernetes\.io/limit-ranger}'
LimitRanger plugin set: cpu, memory request for container probe; memory limit for container probe

The kubernetes.io/limit-ranger annotation records what was injected, which answers “where did this limit come from?” when the Deployment spec shows none.

LimitRanges act only at admission. Adding or changing one leaves running pods untouched; the values apply to pods created afterwards, including replacements a controller creates during a rollout.

A LimitRange also does not check that its defaults agree with what a pod does set. A container that requests cpu: 700m with no limit, in a namespace whose default CPU limit is 500m, ends up with a request above its limit, and the API server rejects it with must be less than or equal to cpu limit. Set both values in that container, or raise the default.

LimitRange and ResourceQuota are the two built-in admission plugins for resource policy. For rules they cannot express, such as “every container must set a memory limit”, the built-in ValidatingAdmissionPolicy (GA in 1.30) and MutatingAdmissionPolicy (GA in 1.36) take CEL expressions, with no webhook to run. Pod security has its own built-in, Pod Security Admission, GA in 1.25, the release that removed PodSecurityPolicy; you configure it per namespace with pod-security.kubernetes.io/enforce, audit and warn labels set to privileged, baseline or restricted. Policy engines such as Kyverno or Gatekeeper remain options when you need more than these.

ResourceQuota

A LimitRange bounds each pod. A ResourceQuotaA namespaced object that caps the total resources and object counts all non-terminal pods and objects in its namespace may consume. bounds the namespace. The ResourceQuota admission plugin checks every create and update against spec.hard, and the quota controller keeps status.used current.

apiVersion: v1
kind: ResourceQuota
metadata:
  name: compute
  namespace: team-a
spec:
  hard:
    requests.cpu: "2"
    requests.memory: 2Gi
    limits.memory: 4Gi
    pods: "10"

What a quota can cap:

  • Compute: requests.cpu, requests.memory, limits.cpu, limits.memory and hugepages-<size>. Plain cpu and memory mean the same as the requests. forms. requests.ephemeral-storage and limits.ephemeral-storage work the same way.
  • Storage: requests.storage and persistentvolumeclaims for the whole namespace, and per StorageClass with keys of the form <class>.storageclass.storage.k8s.io/requests.storage, for example gold.storageclass.storage.k8s.io/requests.storage: 500Gi, and <class>.storageclass.storage.k8s.io/persistentvolumeclaims to count claims.
  • Object counts: count/<resource>.<group>, such as count/deployments.apps or count/jobs.batch, and count/<resource> for core types such as count/secrets.

scopes narrow a quota to a subset of objects: BestEffort, NotBestEffort, Terminating, NotTerminating, PriorityClass (with a scopeSelector) and CrossNamespacePodAffinity for pods, and VolumeAttributesClass for PersistentVolumeClaims.

Quota is checked at admission and counts only pods in a non-terminal phase. Changing a quota never touches running pods: lowering requests.cpu below what is in use refuses further pods until usage drops, and evicts nothing.

FailedCreate

The quota and LimitRange refusals have an unusual shape: there is no pod to look at. The ReplicaSet controller sends a create request, admission returns 403 Forbidden, and the pod object never exists. kubectl get pods shows the replicas that did start and nothing else. Nothing is Pending, because Pending pods are pods that exist and wait for a node.

The error is recorded where the request came from: a Warning event with reason FailedCreate on the ReplicaSet (or the Job, or the StatefulSet), and a ReplicaFailure condition on the ReplicaSet and its Deployment.

A scale-up that hits the quota
kubectl -n team-a scale deployment api --replicas=6
deployment.apps/api scaled
kubectl -n team-a get deploy api
NAME   READY   UP-TO-DATE   AVAILABLE   AGE
api    4/6     4            4           16s
kubectl -n team-a get pods
NAME                   READY   STATUS    RESTARTS   AGE
api-684d8fcf78-54gsc   1/1     Running   0          16s
api-684d8fcf78-c6l79   1/1     Running   0          16s
api-684d8fcf78-v54dd   1/1     Running   0          16s
api-684d8fcf78-z2wfr   1/1     Running   0          16s
kubectl -n team-a describe resourcequota compute
Name:            compute
Namespace:       team-a
Resource         Used  Hard
--------         ----  ----
limits.memory    1Gi   4Gi
pods             4     10
requests.cpu     2     2
requests.memory  1Gi   2Gi
kubectl -n team-a get events --field-selector reason=FailedCreate
LAST SEEN   TYPE      REASON         OBJECT                      MESSAGE
1s          Warning   FailedCreate   replicaset/api-684d8fcf78   Error creating: pods "api-684d8fcf78-bxmlm" is forbidden: exceeded quota: compute, requested: requests.cpu=500m, used: requests.cpu=2, limited: requests.cpu=2
0s          Warning   FailedCreate   replicaset/api-684d8fcf78   Error creating: pods "api-684d8fcf78-vw8g6" is forbidden: exceeded quota: compute, requested: requests.cpu=500m, used: requests.cpu=2, limited: requests.cpu=2

The api pods each request 500m CPU and 256Mi memory, with a 256Mi memory limit. The message names the quota, the resource, what the refused pod asked for, what is used and the ceiling: four pods use the whole 2-core allowance, so the fifth cannot be admitted, although memory and the pod count still have room.

Manifestapi.yaml, the Deployment the quota stops

Edit api.yaml, then apply it to this page's cluster
In the cluster
  • deployment.apps/api
Tab indents two spaces and Shift+Tab outdents. To leave the editor, press Escape, then Tab. Control+Enter or Command+Enter to apply.
The preview runs once this page's cluster starts.

Set replicas to 6 and apply: two pods never appear, and the Deployment reports the refusal. Then lower requests.cpu to 250m and apply again, and step the clock: the rollout that starts makes no progress, for the reason the next paragraph gives.

The ReplicaSet controller keeps retrying with a growing back-off, so the missing pods appear on a later attempt once room exists: after the quota is raised, after other pods in the namespace go away, or after requests shrink. Shrinking requests on the Deployment is the trap. It changes the pod template, which starts a rollout, and a rolling update creates pods from the updated template while the old pods still hold the quota. Under a full quota those surge pods are refused too, and progress depends on how many old pods maxUnavailable lets the controller remove first. A Deployment that is already short of replicas may be allowed none, and the rollout stalls.

Pod-level resources (beta since 1.34)

Container-level values force you to split a budget in advance: 400m to the app, 100m to the log shipper, even when the shipper is idle most of the time. Pod-level resources set one budget for the whole pod in spec.resources, and containers without their own values share it. The PodLevelResources feature is beta and enabled by default since 1.34, still beta in 1.37, and accepts CPU, memory and hugepages.

apiVersion: v1
kind: Pod
metadata:
  name: report
spec:
  resources:
    requests:
      cpu: "1"
      memory: 512Mi
    limits:
      cpu: "1"
      memory: 512Mi
  containers:
    - name: app
      image: ghcr.io/kx-labs/web:1.1
    - name: shipper
      image: busybox:1.37
      command: ["sh", "-c", "while true; do sleep 30; done"]

When both levels are set, the pod-level values take precedence for scheduling and for the pod’s QoS class: equal pod-level CPU and memory requests and limits make this pod Guaranteed even though neither container sets anything. Pod-level resources are not supported for Windows pods.

Without pod-level values, the pod’s request is computed from its containers. Regular containers and sidecars (init containers with restartPolicy: Always, stable since 1.33) run together, so their requests add up. A regular init container runs alone, alongside only the sidecars started before it. The effective request is whichever total is larger, so a heavyweight init container can make a small pod hard to place.

Requests and limits are not frozen at creation either. In-place pod resize, GA in 1.35, changes a running container’s CPU and memory through the pod’s resize subresource, without recreating the pod:

kubectl patch pod cache --subresource resize --patch '{"spec":{"containers":[{"name":"cache","resources":{"limits":{"memory":"256Mi"}}}]}}'

Each container’s resizePolicy decides whether a change needs a restart; the default is NotRequired. A resize can never change the pod’s QoS class, and the pod’s conditions report PodResizePending or PodResizeInProgress while the kubelet works on it. Editing a Deployment’s template still replaces its pods through a rollout. Resizing pod-level resources in place is a separate feature with its own gate, InPlacePodLevelResourcesVerticalScaling, which the feature-gate reference lists as beta and enabled by default since 1.36.

Watch a quota refuse pods on your cluster

  1. kubectl --context kind-kx create namespace quota-demo
  2. kubectl --context kind-kx -n quota-demo create quota compute --hard=requests.cpu=1,requests.memory=1Gi
  3. kubectl --context kind-kx -n quota-demo create deployment web --image=nginx:1.30 --replicas=2
  4. kubectl --context kind-kx -n quota-demo get events --field-selector reason=FailedCreate
  5. kubectl --context kind-kx -n quota-demo set resources deployment web --requests=cpu=400m,memory=128Mi
  6. kubectl --context kind-kx -n quota-demo describe quota compute
  7. kubectl --context kind-kx delete namespace quota-demo

For your own kind cluster kx: copy a command and paste it into your terminal. Run in the simulator runs the same command in this page's simulated cluster instead; nothing on this page touches your machine. The first FailedCreate events end in must specify requests.cpu for: nginx; requests.memory for: nginx. After set resources, two pods start and the quota shows 800m of the 1 CPU used.

Actual state

Check your understanding

5 checks

Your first answer to each check is the one that counts. After a miss you can answer again; passing every check reconciles the lesson.

  1. Check 1 of 5

    A container with limits.cpu: 500m tries to use two full cores for a minute. What happens?

  2. Check 2 of 5

    A container sets limits.memory: 512Mi and no memory request, and the namespace has no LimitRange. What memory request does the scheduler use?

  3. Check 3 of 5

    A namespace has a ResourceQuota with only requests.cpu and count/deployments.apps in spec.hard. Which pod is refused?

  4. Check 4 of 5

    Check runs your command on a private cluster; what it prints shows here.

  5. Check 5 of 5

    A Deployment is scaled from 4 to 6 replicas in a namespace whose quota is full. Where do you find the refusal?

Lesson not yet reconciled

Desired: 4 objectives, 0 metReconciled: 4 of 4 objectives met

  • Set CPU and memory requests and limits and predict whether a container is throttled or OOM-killed. (not yet met)
  • Explain how requests drive scheduling and limits drive enforcement on the node. (not yet met)
  • Set namespace defaults and per-container bounds with a LimitRange, and namespace totals with a ResourceQuota. (not yet met)
  • Find why a ReplicaSet created no pods when a quota refuses them. (not yet met)

Pass every check above to reconcile this lesson.

Every check has passed, so the desired state is met. First-try accuracy: 0 of 5. This lesson's review cards are in your queue.

Practice

Put this lesson to work on the simulated cluster. Everything runs in your browser, with nothing to install.

Changed since the notes

This lesson draws on an earlier set of study notes. Where the documentation contradicts a claim in them, qualifies it or has moved past it, the claim is listed here with the corrected statement and the source it was checked against.

Show 11 corrections
  1. Nuance, true with conditionsNamespaces and Resource Management

    The notes saidPolicy enforcement 'through admission controllers. Tools like OPA Gatekeeper and Kyverno'

    CorrectedTeach the built-ins first: Pod Security Admission (GA 1.25), ValidatingAdmissionPolicy with CEL (GA 1.30) and MutatingAdmissionPolicy (alpha 1.30, beta 1.34 to 1.35, GA 1.36). Gatekeeper and Kyverno (v1.20.0) remain options for richer policy, image verification and generation.

    Sourcekubernetes.io/docs/reference/access-authn-authz/validating-admission-policy/;%20https://kubernetes.io/docs/reference/access-authn-authz/mutating-admission-policy/;%20https://kubernetes.io/docs/reference/command-line-tools-reference/feature-gates

  2. Nuance, true with conditionsNamespaces and Resource Management

    The notes saidQoS classes determined only by container-level requests/limits

    CorrectedPod-level resources (spec.resources; PodLevelResources beta and on by default since 1.34, still beta in 1.37) also feed QoS: with pod-level CPU and memory requests equal to limits the pod is Guaranteed. In-place pod resize is GA in 1.35 (in-place resize of pod-level resources is beta in 1.36); a resize must keep the pod's original QoS class.

    Sourcekubernetes.io/docs/concepts/workloads/pods/pod-qos/;%20https://kubernetes.io/docs/tasks/configure-pod-container/resize-container-resources/;%20https://kubernetes.io/blog/2025/12/19/kubernetes-v1-35-in-place-pod-resize-ga

  3. Nuance, true with conditionsNamespaces and Resource Management

    The notes said'Pod security standards… can be enforced'

    CorrectedEnforcement is the built-in Pod Security Admission controller (GA 1.25), configured with namespace labels pod-security.kubernetes.io/enforce|audit|warn: privileged|baseline|restricted (plus optional -version labels). PodSecurityPolicy was removed in 1.25.

    Sourcekubernetes.io/docs/concepts/security/pod-security-admission

  4. Wrong, not trueNamespaces and Resource Management

    The notes saidPer-StorageClass quota key 'requests.storage.standard: "50Gi"'

    CorrectedThe key is <storage-class-name>.storageclass.storage.k8s.io/requests.storage, for example standard.storageclass.storage.k8s.io/requests.storage: 50Gi (and <class>.storageclass.storage.k8s.io/persistentvolumeclaims for counts).

    Sourcekubernetes.io/docs/concepts/policy/resource-quotas#storage-resource-quota

  5. Nuance, true with conditionsNamespaces and Resource Management

    The notes said'When quotas are enabled, pods must specify resource requests and limits'

    CorrectedOnly resources the quota actually tracks must be specified: a quota on requests.cpu requires CPU requests but not memory limits, and object-count quotas require nothing. A LimitRange can inject defaults so pods are not rejected.

    Sourcekubernetes.io/docs/concepts/policy/resource-quotas

  6. Wrong, not trueNamespaces and Resource Management

    The notes said'kubelet evicts pods starting with BestEffort, then Burstable, then Guaranteed…'

    CorrectedNode-pressure eviction ranks pods by (1) whether usage of the starved resource exceeds requests, (2) Pod priority, (3) usage relative to requests. QoS class is not the ranking key; it falls out of the first criterion (BestEffort/Burstable over requests go first), and priority is a major factor the note omits.

    Sourcekubernetes.io/docs/concepts/scheduling-eviction/node-pressure-eviction#pod-selection-for-kubelet-eviction

  7. Nuance, true with conditionsPerformance Tuning

    The notes saidHPA behavior defaults implied

    CorrectedDefaults: scale-down stabilization window 300s; scale-up has no stabilization and allows the larger of 100% or 4 pods per 15s; global tolerance 10%. Per-HPA tolerance in spec.behavior (HPAConfigurableTolerance) was alpha in 1.33, beta in 1.35 and GA in 1.37.

    Sourcekubernetes.io/docs/concepts/workloads/autoscaling/horizontal-pod-autoscale

  8. Stale, true once, no longerPerformance Tuning

    The notes saidRight-sizing by changing requests (implies restart)

    CorrectedIn-place pod resize (InPlacePodVerticalScaling) is GA in Kubernetes 1.35 (beta in 1.33). CPU and memory requests and limits can be changed through the pods/resize subresource without recreating the pod, subject to each container's resizePolicy. Editing a Deployment's pod template still rolls the pods.

    Sourcekubernetes.io/docs/tasks/configure-pod-container/resize-container-resources

  9. Wrong, not truePerformance Tuning

    The notes said'kubectl top pods --containers' to 'check for throttling'

    CorrectedConfirmed. kubectl top reports CPU and memory usage only. Throttling shows in cAdvisor's container_cpu_cfs_throttled_periods_total and container_cpu_cfs_periods_total.

    Sourcekubernetes.io/docs/tasks/debug/debug-cluster/resource-metrics-pipeline

  10. Nuance, true with conditionsPerformance Tuning

    The notes saidQoS definitions are oversimplified

    CorrectedConfirmed. Guaranteed: every container sets CPU and memory requests and limits, with requests equal to limits. BestEffort: no container sets any CPU or memory request or limit. Burstable: any pod that is neither, such as one with requests only.

    Sourcekubernetes.io/docs/concepts/workloads/pods/pod-qos

  11. Nuance, true with conditionsPerformance Tuning

    The notes saidProbe example sets timeoutSeconds: 5 but never mentions that the default is 1s

    CorrectedConfirmed. timeoutSeconds defaults to 1 second (minimum 1), a common cause of spurious liveness failures on slow endpoints; state the default next to the example.

    Sourcekubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes

Every correction across the guide, by note and topic.

Sources

Checked against kubernetes.io and AWS documentation for Kubernetes 1.37 on .

  1. kubernetes.io/docs/concepts/configuration/manage-resources-containers
  2. kubernetes.io/docs/concepts/policy/limit-range
  3. kubernetes.io/docs/tasks/administer-cluster/manage-resources/memory-constraint-namespace
  4. kubernetes.io/docs/concepts/policy/resource-quotas
  5. kubernetes.io/docs/concepts/storage/ephemeral-storage
  6. kubernetes.io/docs/tasks/configure-pod-container/assign-pod-level-resources
  7. kubernetes.io/docs/tasks/configure-pod-container/resize-container-resources
  8. kubernetes.io/docs/concepts/workloads/pods/pod-qos
  9. kubernetes.io/docs/concepts/scheduling-eviction/node-pressure-eviction
  10. kubernetes.io/docs/tasks/debug/debug-cluster/resource-metrics-pipeline
  11. kubernetes.io/docs/concepts/workloads/autoscaling/horizontal-pod-autoscale
  12. kubernetes.io/docs/reference/access-authn-authz/admission-controllers
  13. kubernetes.io/docs/reference/config-api/kubelet-config.v1beta1
  14. kubernetes.io/docs/reference/command-line-tools-reference/feature-gates

Requests, limits and quotas

↓ ↑ step, 1 to 8 scene, Esc leave

kind cluster kxLast command: Nothing run yet