Scheduling and nodesLesson 2 of 10
  1. Requests, limits and quotas, not reconciled
  2. QoS classes and node-pressure eviction, not reconciled
    1. Three QoS classes
    2. Node allocatable
    3. Pressure signals
    4. Eviction ranking
    5. Kernel OOM killer
    6. What you see
    7. Conditions and taints
  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

QoS classes and node-pressure eviction

Every pod gets a QoS class from its requests and limits, and every node keeps memory and disk back for itself. Learn how the kubelet picks pods to evict under pressure, and how that differs from a kernel OOM kill.

  • 20 min
  • 4 objectives
  • 7 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 7 scenes

Three QoS classes

When a pod is created, Kubernetes gives it a QoS classQuality of Service class: Guaranteed, Burstable or BestEffort, derived from the CPU and memory requests and limits of a pod’s containers and recorded in status.qosClass.. There are three, and the rules look only at CPU and memory, across every container in the pod, init containers and sidecars (stable since 1.33) included:

  • Guaranteed. Every container sets a CPU request and a CPU limit, and a memory request and a memory limit, all greater than zero, with each request equal to its limit.
  • BestEffort. No container sets any CPU or memory request or limit.
  • Burstable. Everything else: a pod with requests but no limits, a pod where only one container sets resources, a pod whose limits are higher than its requests.

If the pod uses pod-level resources (beta and on by default since 1.34), the pod-level values decide instead: equal pod-level CPU and memory requests and limits make the pod Guaranteed whatever its containers say. Requests for other resources, such as ephemeral-storage or a GPU, do not affect the class.

apiVersion: v1
kind: Pod
metadata:
  name: steady
spec:
  containers:
    - name: app
      image: ghcr.io/kx-labs/web:1.1
      resources:
        requests:
          cpu: 100m
          memory: 64Mi
        limits:
          cpu: 100m
          memory: 64Mi
---
apiVersion: v1
kind: Pod
metadata:
  name: bursty
spec:
  containers:
    - name: app
      image: ghcr.io/kx-labs/web:1.1
      resources:
        requests:
          memory: 64Mi
---
apiVersion: v1
kind: Pod
metadata:
  name: scratch
spec:
  containers:
    - name: app
      image: ghcr.io/kx-labs/leaky:1.0

The class is fixed for the life of the pod. In-place resize (GA in 1.35) can change a running pod’s CPU and memory requests and limits without recreating the pod, but admission rejects any resize that would move the pod to a different class.

The class itself does very little. What it steers:

  • The OOM killer’s aim. Through the container runtime (containerd or CRI-O, over the CRI; dockershim was removed in 1.24), the kubelet gives every container an oom_score_adj: -997 for Guaranteed, 1000 for BestEffort, and a value between 2 and 999 for Burstable that falls as the memory request grows.
  • The cgroup tree. Guaranteed pods sit directly under the kubepods cgroup; Burstable and BestEffort pods sit under their own parent cgroups.
  • Scheduling under memory pressure. The control plane gives every pod except BestEffort pods a toleration for the node.kubernetes.io/memory-pressure taint, so a node short of memory still accepts Guaranteed and Burstable pods.
  • Exclusive CPUs. With the kubelet’s static CPU manager policy, Guaranteed pods with whole-number CPU requests get cores of their own.
  • Memory QoS. On cgroup v2 the MemoryQoS feature is beta and enabled by default in 1.37. It does nothing until you set memoryThrottlingFactor (the kubelet then sets memory.high for Burstable and BestEffort containers, throttling memory before the hard limit) or memoryReservationPolicy: TieredReservation (memory protection from requests).

The scheduler does not use the class when it picks pods to preempt, and, as the next sections show, the kubelet does not use it to rank evictions either.

Choosing a class is choosing how much you trust your numbers. Guaranteed suits workloads whose footprint you have measured: databases, caches with a fixed heap, anything that must never be the node’s spare capacity. You pay for it in density, because the scheduler reserves the full limit even while the pod idles. Burstable with memory requests equal to memory limits and no CPU limit is the usual shape for stateless services: memory is reserved honestly, and idle CPU on the node is put to use. BestEffort belongs to work you are happy to lose, and even then a small memory request is cheap insurance: while the pod stays under it, the pod is outside the group the kubelet evicts from first, and its oom_score_adj drops below 1000.

ExplainerQoS classes and eviction

Start from

kind: Pod name: shop-api

- name: app
requests:
limits:
- name: log-shipper
requests:
limits:

status.qosClass: Burstable

app sets no cpu limit, so the pod is Burstable: some resources are set, but not every container has equal requests and limits.

  • BestEffortno container sets any request or limit
  • Burstablesomething is set, but not every request matches a limit
  • Guaranteedevery container sets CPU and memory limits, with requests equal to them

Node kx-worker2

1645Mi of 8192Mi available

Used memory, your pod highlighted; the tinted end is the 100Mi eviction threshold.

  1. batch-reportBestEffort2000Mi used, no request

    1st to go: over its request by 2000Mi

  2. cacheBurstable2400Mi used, 1024Mi request, 3072Mi limit

    2nd to go: over its request by 1376Mi

  3. kindnet-89sgrBurstable12Mi used, 50Mi request, 50Mi limit

    3rd to go: within its request

  4. shop-apiBurstable193Mi used, 256Mi request

    4th to go: within its request

    app memory usage192Mi
  5. dbGuaranteed1900Mi used, 2048Mi request, 2048Mi limit

    5th to go: within its request

  6. kube-proxy-jf2j6BestEffort22Mi used, no request

    never evicted: critical priority

  7. metrics-server-68b7896d57-jm79dBurstable20Mi used, 200Mi request

    never evicted: critical priority

$ kubectl get events -n shop --field-selector reason=Evicted
No resources found in shop namespace.

app sets no cpu limit, so the pod is Burstable: some resources are set, but not every container has equal requests and limits. kx-worker2 has 1645Mi available, above the 100Mi eviction threshold.

Set requests and limits to change the pod's QoS class, then put the node under memory pressure and see the order the kubelet evicts pods in, and how an OOM kill differs from an eviction.

Node allocatable

A node does not offer all of its memory to pods. The kubelet holds back three slices, and the rest is allocatableThe amount of each resource the scheduler may hand out to pods on a node: capacity minus kube-reserved, system-reserved and the hard eviction threshold.:

Allocatable = Capacity - kubeReserved - systemReserved - evictionHard
  • kubeReserved covers Kubernetes node daemons: the kubelet and the container runtime.
  • systemReserved covers the operating system: sshd, udev, the kernel’s own memory.
  • The hard eviction threshold is the floor the kubelet defends by evicting pods. Keeping it out of allocatable means pods that use exactly their requests never trigger eviction by themselves.

All three live in the kubelet’s configuration file on the node, not in an API object:

apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
kubeReserved:
  cpu: "1"
  memory: 2Gi
  ephemeral-storage: 1Gi
systemReserved:
  cpu: 500m
  memory: 1Gi
  ephemeral-storage: 1Gi
evictionHard:
  memory.available: 500Mi
  nodefs.available: "10%"
  imagefs.available: "15%"
  nodefs.inodesFree: "5%"
  imagefs.inodesFree: "5%"

On a node with 16 CPUs, 32Gi of memory and 100Gi of disk, this leaves 14.5 CPUs, 28.5Gi of memory and 88Gi of ephemeral storage allocatable. kubectl describe node prints Capacity and Allocatable one above the other. With enforceNodeAllocatable: [pods], the default, the kubelet also enforces allocatable across pods: when the pods together use more than allocatable, it evicts.

Reservations matter because the scheduler only sees allocatable. Set them too small, and a node packed to its allocatable leaves the kubelet, the container runtime and the operating system competing with pods for the last of the memory.

The eviction documentation works one sizing through. A node has 10GiB of memory; you want 10% of it kept for system daemons, and evictions to start at 95% use. Set evictionHard to memory.available: 500Mi and systemReserved to memory: 1.5Gi, the 1GiB for daemons plus the 500Mi threshold. The node then reaches its threshold only when a pod uses more than it requested, or the system uses more than its 1GiB.

Pressure signals

The kubelet decides when to evict by comparing each eviction signalA measurement of one node resource, such as memory.available or nodefs.available, that the kubelet compares with an eviction threshold. with its threshold, every housekeeping-interval, 10 seconds by default:

SignalMeasures
memory.availableNode memory capacity minus the working set of everything on the node
nodefs.available, nodefs.inodesFreeThe node’s main filesystem: kubelet state, logs, emptyDir volumes
imagefs.available, imagefs.inodesFreeA separate filesystem for images and writable layers, when the runtime has one
containerfs.available, containerfs.inodesFreeWritable layers, when they are split from images
pid.availableProcess IDs left

memory.available comes from the cgroup filesystem, not from free, and it counts reclaimable inactive page cache as available. A node can look full to free and comfortable to the kubelet.

The Linux defaults for hard thresholds are memory.available<100Mi, nodefs.available<10%, imagefs.available<15%, nodefs.inodesFree<5% and imagefs.inodesFree<5%. Those defaults apply only while you change none of them: set any one in evictionHard, and the rest drop to zero unless you list them all or set mergeDefaultEvictionSettings: true.

Thresholds come in two kinds:

  • Hard thresholds (evictionHard) act at once. The kubelet kills the chosen pod with a 0-second grace period.
  • Soft thresholds (evictionSoft) must hold for a grace period you set per signal in evictionSoftGracePeriod. The pod then gets the lesser of its own terminationGracePeriodSeconds and evictionMaxPodGracePeriod. evictionMaxPodGracePeriod defaults to 0, so unless you set it, a soft eviction also kills the pod without graceful termination.

evictionMinimumReclaim makes the kubelet reclaim a margin beyond the threshold, so it does not evict one pod, recover by a few megabytes and cross the line again a minute later. It defaults to zero.

Neither kind respects PodDisruptionBudgets. That is the difference between node-pressure eviction and the drains you run for maintenance: kubectl drain, Karpenter and other node lifecycle tools are API clients that evict through the Eviction API, which honours PDBs and grace periods. The kubelet is defending the node and asks no one.

Eviction ranking

For disk pressure, the kubelet first tries to reclaim without touching running pods: it garbage-collects dead pods and containers and deletes unused images. Memory has no such step. When reclaim does not help, it ranks pods by three criteria, in this order:

  1. Whether the pod’s usage exceeds its requests. Pods over their requests go first.
  2. Priority. Among those, lower priority goes first.
  3. Usage relative to requests. Among equal priority, the pod furthest over its request goes first.

Guaranteed pods, and Burstable pods using less than they request, are not evicted because of another pod’s usage. They are at risk only when system daemons use more than kubeReserved and systemReserved allow and nothing else is left to evict; then the kubelet evicts by priority alone. Inodes and PIDs have no requests, so pressure on those is also ranked by priority alone.

Because priority sits above the size of the overrun, it is the lever you control. Give node agents that must survive pressure, such as log shippers and CNI or storage daemons, a PriorityClass high enough that ordinary workloads are evicted before them. Give batch work a low one, so it is the first thing a squeezed node gives up. A static pod cannot use priorityClassName; set its priority field directly.

To see the ranking work, a simulator scenario gives kx-worker only 1 GiB of memory and makes it the only worker, then runs the three pods above. scratch runs leaky, which allocates without bound:

BestEffort over its request, evicted first
kubectl apply -f qos-demo.yaml
pod/steady created
pod/bursty created
pod/scratch created
kubectl get pods -o custom-columns=NAME:.metadata.name,QOS:.status.qosClass
NAME      QOS
bursty    Burstable
scratch   BestEffort
steady    Guaranteed
kubectl wait --for=jsonpath='{.status.reason}'=Evicted pod/scratch --timeout=300s
pod/scratch condition met
kubectl describe node kx-worker | grep -E 'Taints|MemoryPressure'
Taints:             node.kubernetes.io/memory-pressure:NoSchedule
  MemoryPressure   True    Thu, 19 Nov 2026 09:02:21 +0000   Thu, 19 Nov 2026 09:02:21 +0000   KubeletHasInsufficientMemory   kubelet has insufficient memory available
kubectl get pods
NAME      READY   STATUS    RESTARTS   AGE
bursty    1/1     Running   0          111s
scratch   0/1     Error     0          111s
steady    1/1     Running   0          111s
kubectl get pod scratch -o jsonpath='{.status.phase} {.status.reason}'
Failed Evicted
kubectl get events --field-selector reason=Evicted
LAST SEEN   TYPE      REASON    OBJECT        MESSAGE
0s          Warning   Evicted   pod/scratch   The node was low on resource: memory. Threshold quantity: 100Mi, available: 96256Ki. Container app was using 884736Ki, request is 0, has larger consumption of memory.

The event message carries the whole decision: the signal (memory), the threshold, the measured value, and why this pod was picked, using 884736Ki against a request of 0.

Kernel OOM killer

The kubelet samples every 10 seconds; memory can run out faster than that. If the node runs out before the kubelet acts, the kernel’s OOM killer picks a victim instead. It scores each process by its share of node memory, adds the container’s oom_score_adj, and kills the highest score. A BestEffort container (+1000) using a lot of memory scores far above a Guaranteed one (-997). Containers in pods at system-node-critical priority also get -997, whatever their class.

This is a different path from the container-limit OOM kill in the previous lesson, which happens inside one container’s cgroup when that container reaches its own limit, whatever the rest of the node is doing. A node-level OOM kill can hit a container that is well within its limit, because the node as a whole ran dry.

Either way the result is the same kind of event: one container is killed with SIGKILL, the kubelet records OOMKilled, and because restartPolicy defaults to Always for every pod, it restarts the container in place. The pod is not evicted and keeps its name, its node and its IP.

Apply qos-demo.yaml from the transcript above, then fill a container’s memory. The button runs an allocating process in bursty, the first pod with a memory limit; the kernel kills it at its 256Mi limit, and kubectl get pod bursty shows the restart while the pod keeps its name and IP.

Run a container out of memory

Each button runs its command on the cluster. This line follows what happens next.

What you see

The two mechanisms leave different evidence. Learn to tell them apart before you change anything:

Kernel OOM killKubelet eviction
Who actsThe kernel, inside a cgroupThe kubelet, defending a node threshold
TriggerA container reaches its memory limit, or the node runs out before the kubelet actsA signal such as memory.available crosses a threshold
The pod afterwardsSame pod, phase Running, RESTARTS climbsPhase Failed, status.reason: Evicted, never restarted
Where to looklastState.terminated: reason OOMKilled, exit code 137status.message, a Warning event with reason Evicted, a DisruptionTarget condition with reason TerminationByKubelet
RecoveryThe kubelet restarts the container, with crash-loop back-offA controller creates a replacement pod, possibly on another node

Failed is a terminal phase. Nothing restarts an evicted pod: its ReplicaSet notices one replica fewer and creates a fresh pod, which the scheduler places wherever there is room. The old object stays behind so you can read why it died, until you delete it or the pod garbage collector removes it, which by default happens only after the cluster holds 12,500 terminated pods.

Two output details catch people. First, kubectl get pods prints a container’s termination reason in the STATUS column when there is one, so an evicted pod often shows Error or ContainerStatusUnknown rather than Evicted; read status.reason. Second, an evicted pod is in a terminal phase, so the EndpointSlice controller drops it from its Services’ EndpointSlices and kube-proxy stops sending it traffic. The same mechanics make a readiness probe that checks a shared dependency risky: when the dependency fails, every replica turns unready at once and the Service is left with no endpoints. kube-proxy reads EndpointSlices, not the v1 Endpoints API, which has been deprecated since 1.33, and programs them as iptables or nftables rules; nftables mode is GA since 1.33, and the ipvs mode has been deprecated since 1.35.

A restart from a failing liveness probe can also end in exit code 137, when the container ignores SIGTERM and is killed at the end of its grace period. That holds for every probe mechanism, exec, HTTP, TCP and gRPC (GA in 1.27). The reason field is what separates it from OOMKilled.

Besides PodScheduled, Initialized, ContainersReady and Ready, a pod’s status.conditions can record:

  • PodReadyToStartContainers (stable in 1.37): the sandbox, its network and its volumes are ready. A pod stuck in ContainerCreating without it usually points at the sandbox, the CNI plugin or a volume mount. A slow pull of a large image also shows ContainerCreating; a failed pull shows ErrImagePull or ImagePullBackOff.
  • DisruptionTarget: the pod is about to be removed by eviction, preemption or garbage collection.
  • PodResizePending and PodResizeInProgress: an in-place resize is waiting or under way.

Conditions and taints

While a signal is past its threshold, the kubelet sets a condition on the Node: MemoryPressure for memory.available, DiskPressure for the filesystem signals, and PIDPressure for pid.available. The node lifecycle controller turns each condition into a NoSchedule taint: node.kubernetes.io/memory-pressure, node.kubernetes.io/disk-pressure, node.kubernetes.io/pid-pressure.

The scheduler reads the taints, not the conditions. Every pod except BestEffort pods carries an automatic toleration for the memory-pressure taint, so a node short of memory stops accepting BestEffort pods and keeps accepting the rest. The DaemonSet controller adds NoSchedule tolerations for all three pressure taints, so node agents still land on a struggling node.

A soft threshold can bounce back and forth across its line. evictionPressureTransitionPeriod, 5 minutes by default, makes the kubelet wait that long after the last crossing before it clears a condition, so the taint does not flap.

Read your nodes' QoS inputs and thresholds

  1. kubectl --context kind-kx create deployment qos-demo --image=nginx:1.30
  2. kubectl --context kind-kx set resources deployment qos-demo --requests=cpu=100m,memory=64Mi --limits=cpu=100m,memory=64Mi
  3. kubectl --context kind-kx get pods -l app=qos-demo -o custom-columns=NAME:.metadata.name,QOS:.status.qosClass
  4. kubectl --context kind-kx describe node kx-worker | grep -A7 -E '^(Capacity|Allocatable)'
  5. kubectl --context kind-kx get --raw /api/v1/nodes/kx-worker/proxy/configz | grep -o '"evictionHard":{[^}]*}'
  6. kubectl --context kind-kx delete deployment qos-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 pods report Guaranteed. The configz output is the kubelet's live configuration; compare its evictionHard with the Linux defaults, since kind sets its own.

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 pod's app container sets CPU and memory requests equal to its limits. Its log-shipping sidecar sets no resources at all. What QoS class does the pod get?

  2. Check 2 of 5

    A node crosses its memory.available threshold. Which pod does the kubelet evict first? A: Guaranteed, priority 0, using less than its request. B: BestEffort, priority 1000000, using 50Mi. C: Burstable, priority 0, requesting 256Mi and using 600Mi.

  3. Check 3 of 5

    A pod shows RESTARTS 4, phase Running, and its container's lastState.terminated has reason OOMKilled and exit code 137. What happened?

  4. Check 4 of 5

  5. Check 5 of 5

    A kubelet configuration sets evictionHard to only memory.available: 500Mi, and leaves mergeDefaultEvictionSettings unset. What happens to the nodefs.available threshold?

Lesson not yet reconciled

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

  • Derive a pod's QoS class from its containers' requests and limits. (not yet met)
  • Explain the order in which the kubelet evicts pods under memory or disk pressure. (not yet met)
  • Tell a kernel OOM kill from a kubelet eviction by what each leaves behind. (not yet met)
  • Set eviction thresholds and system reservations in the kubelet configuration. (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 17 corrections
  1. Stale, true once, no longerKubernetes Worker Nodes

    The notes saidIPVS mode is recommended for large clusters

    CorrectedIPVS is deprecated since v1.35. The docs say it is disabled by default from v1.40 (re-enable with the KubeProxyIPVS gate) and removed in v1.43, while the 2026-11-16 blog plans removal in v1.40. Use nftables mode (GA in v1.33), which on EKS needs 1.33+, is recommended from 1.36, and needs VPC CNI v1.23.0+.

    Sourcekubernetes.io/docs/reference/networking/virtual-ips

  2. Stale, true once, no longerKubernetes Worker Nodes

    The notes saidKube-proxy watches the API server for Service and Endpoint changes

    Correctedkube-proxy consumes EndpointSlices. The v1 Endpoints API is deprecated as of v1.33.

    Sourcekubernetes.io/blog/2025/04/24/endpoints-deprecation

  3. Stale, true once, no longerKubernetes Worker Nodes

    The notes saidDocker can still be used through a deprecated compatibility layer

    Correcteddockershim was removed in v1.24. Docker Engine now needs the external cri-dockerd adapter.

    Sourcekubernetes.io/blog/2022/02/17/dockershim-faq

  4. Wrong, not trueKubernetes Worker Nodes

    The notes saidIf the node needs to drain for maintenance, the kubelet evicts pods gracefully

    CorrectedDrains run client-side (kubectl drain, Karpenter, managed node groups) through the Eviction API, which honours PDBs. The kubelet only does node-pressure eviction, which ignores PDBs and terminationGracePeriodSeconds.

    Sourcekubernetes.io/docs/concepts/scheduling-eviction/node-pressure-eviction

  5. Stale, true once, no longerPods Deep Dive

    The notes saidUnlike sidecar containers that run alongside the application, init containers complete and exit

    CorrectedNative sidecars are initContainers with restartPolicy: Always and keep running alongside the app. They have been stable since v1.33.

    Sourcekubernetes.io/docs/concepts/workloads/pods/sidecar-containers

  6. Nuance, true with conditionsPods Deep Dive

    The notes saidMemory limits are enforced strictly

    CorrectedMemory limits are still enforced by OOM kill. In-place Pod resize (GA in v1.35, needs cgroup v2) lets you change requests and limits without restarting the Pod.

    Sourcekubernetes.io/blog/2025/12/19/kubernetes-v1-35-in-place-pod-resize-ga

  7. Stale, true once, no longerPods Deep Dive

    The notes saidProbe mechanisms: HTTP, TCP, exec

    CorrectedgRPC probes are a fourth mechanism, GA since v1.27.

    Sourcekubernetes.dev/resources/keps/2727

  8. Stale, true once, no longerPods Deep Dive

    The notes saidPod conditions: PodScheduled, Initialized, ContainersReady, Ready

    CorrectedCurrent releases add PodReadyToStartContainers (stable since v1.37), DisruptionTarget, PodResizePending and PodResizeInProgress.

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

  9. Wrong, not truePods Deep Dive

    The notes saidAlways is the default restartPolicy for pods created by controllers

    CorrectedAlways is the default restartPolicy for every Pod. Workload controllers such as Deployments accept only Always.

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

  10. Wrong, not truePods Deep Dive

    The notes saidPods that fail might be restarted depending on restart policy

    CorrectedFailed is a terminal phase. Under Always or OnFailure the kubelet restarts the container in place with exponential backoff (CrashLoopBackOff), and the Pod stays Running.

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

  11. Nuance, true with conditionsPods Deep Dive

    The notes saidPods stuck in ContainerCreating usually mean image pull issues

    CorrectedA failed pull shows as ErrImagePull or ImagePullBackOff; a slow pull of a large image does show ContainerCreating. A Pod stuck in ContainerCreating usually means the sandbox, networking (CNI/IP) or volume mounts failed, which are the prerequisites for PodReadyToStartContainers.

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

  12. Nuance, true with conditionsPods Deep Dive

    The notes saidReadiness probes should check shared dependencies such as the database

    CorrectedKubernetes docs do suggest readiness checks for strict back-end dependencies. The risk, which those docs don't state, is that one shared-dependency failure marks every replica unready at once and empties the Service.

    Sourcekubernetes.io/docs/concepts/workloads/pods/probes

  13. Nuance, true with conditionsPods Deep Dive

    The notes saidBestEffort pods are the first to be evicted

    CorrectedThe kubelet doesn't use QoS class to order evictions. It ranks Pods by whether usage exceeds requests, then by priority, then by usage relative to requests. QoS class sets the OOM-killer adjustment (oom_score_adj 1000 for BestEffort).

    Sourcekubernetes.io/docs/concepts/scheduling-eviction/node-pressure-eviction

  14. 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

  15. 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

  16. 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

  17. 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/workloads/pods/pod-qos
  2. kubernetes.io/docs/concepts/scheduling-eviction/node-pressure-eviction
  3. kubernetes.io/docs/tasks/administer-cluster/reserve-compute-resources
  4. kubernetes.io/docs/concepts/configuration/manage-resources-containers
  5. kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration
  6. kubernetes.io/docs/concepts/workloads/pods/disruptions
  7. kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle
  8. kubernetes.io/docs/concepts/workloads/pods/sidecar-containers
  9. kubernetes.io/docs/tasks/configure-pod-container/resize-container-resources
  10. kubernetes.io/docs/reference/command-line-tools-reference/kube-controller-manager
  11. kubernetes.io/blog/2025/04/24/endpoints-deprecation
  12. kubernetes.io/blog/2022/02/17/dockershim-faq
  13. kubernetes.io/docs/reference/config-api/kubelet-config.v1beta1
  14. kubernetes.io/docs/reference/networking/virtual-ips

QoS classes and node-pressure eviction

↓ ↑ step, 1 to 7 scene, Esc leave

kind cluster kx, one small workerLast command: Nothing run yet