Skip to main content
All of the catalog
Scenario

Day-2 Drill: Node Drain Under Load

Take a worker node out of service while go-api serves live traffic. labctl gives the workload enough replicas to survive; you write the PodDisruptionBudget, cordon and drain the node with kubectl, watch the pods reschedule, and put the node back. The grade is the measured request success rate across the window.

OperationsVerifiedk3dkind
Definition on GitHub

What you'll do

  • Write and apply a PodDisruptionBudget that keeps go-api serving while a node is evicted
  • Cordon and drain a worker node with kubectl while traffic runs, and watch pods reschedule
  • Prove the request success rate held across the drain, from Prometheus
  • Return the node to service and leave the cluster at full capacity

Stages

  1. 1baseline

    Scale go-api so a PodDisruptionBudget has something to protect. The budget itself is yours to write.

    workload-ha-replicasdrain-dashboard

Prerequisites

--deploy-prereqs installs these into the lab for you. They are listed so you know what the scenario depends on.

ingressmonitoring/metricsgo-api

Get updates

New scenarios and faults, release notes, and news about hosted labs if and when there is some. A few emails a month at most.

We'll email you about new releases, new lab content and paid offerings such as hosted labs, courses and workshops. Unsubscribe any time.