Skip to main content
All of the catalog
Scenario

Day-2 Drill: Namespace Backup & Restore

Rehearse the loop every operator needs before they need it. Capture a namespace to a manifest archive with 'kubectl get -o json | jq', delete something that matters, and put it back with 'kubectl apply --server-side'. Then find the edge of what that buys you: a data-writer holds a boot-id on a PersistentVolume, and restoring its claim gives you back the object bound to a brand-new empty disk. The objects round-trip; the bytes do not. A dependency-light way to learn where a manifest backup stops and a volume snapshot has to start.

OperationsVerifiedk3dkind
Definition on GitHub

What you'll do

  • Capture a namespace's resources into a restorable manifest archive
  • Simulate accidental loss by deleting a resource, and confirm the loss while it is happening
  • Restore from the archive and prove the object that came back is the one you captured, not a fresh copy
  • Destroy the volume behind the PersistentVolumeClaim, restore, and measure what a manifest backup did NOT bring back

Stages

  1. 1baseline

    Plant a restore marker carrying a token unique to this activation, so a round-trip is provable

    restore-marker
  2. 2stateful

    Deploy a data-writer that persists a boot-id on a PersistentVolume, so PV-data loss is measurable

    data-writerbackup-dashboard

Prerequisites

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

ingressmonitoring/metricsmonitoring/grafanago-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.