Files
rootnode-academy/scenarios/data/delete-by-label-basics.json
T
ced4568andClaude Sonnet 5 60fbf0c385 feat(curriculum): add RootNode learning path, student roster, and scenario isolation metadata
Pre-Phase-1 platform work, approved and tested earlier but not yet committed:

- Terminal banner: "RootNode Academy Lab — node: k8s-lab", upstream KubeKosh
  attribution left untouched in footer/README/LICENSE.
- RootNode curriculum mode: scenarios/rootnode-path.json (Foundation -> Workloads
  -> Networking -> Configuration -> Troubleshooting -> Real Ops -> Capstone),
  built from existing scenario content grouped by category, no new scenarios
  invented. New GET /api/curriculum/path endpoint.
- Student roster + per-student progress: instructor-roster, pick-your-name login
  (no password), students/environments-adjacent progress table migrated to a
  (student_id, scenario_id) composite key so practice progress and exam sessions
  are isolated per student instead of one global bucket. New /api/roster,
  /api/login endpoints.
- scenarios/data/*.json: added isolation_type metadata (shared_namespace vs
  ephemeral_cluster) from an audit of which scenarios execute cluster-scoped or
  node-level commands. This was Tier-1-isolation groundwork that got superseded
  same-day by the full-ephemeral-per-student architecture (see
  docs/LAB_ARCHITECTURE.md) — the field is kept as descriptive metadata only,
  per the note now in scenarios/SCHEMA.md. Not wasted: it's an accurate audit of
  which scenarios touch cluster-scoped resources, useful independent of isolation
  model.
- .gitignore added (node_modules/, frontend/dist/, *.db, /data/, .env) — none
  existed before; without it, npm installs during testing would have landed in
  a commit.

Known limitation still open: no frontend UI for any of this yet (login screen,
roster-add form, curriculum view) — API-only. No auth on the roster-add endpoint.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
2026-08-18 01:21:16 -05:00

60 lines
1.9 KiB
JSON

{
"id": "delete-by-label-basics",
"title": "Bulk Deletion by Label",
"category": "Core Concepts",
"isolation_type": "shared_namespace",
"difficulty": "Easy",
"type": "task",
"weight": 3,
"description": "## Bulk Deletion by Label\n\nYou can use label selectors (`-l`) to perform bulk operations on resources.\n\n**Your task:**\n\nThere are 5 pods running in the default namespace. Delete **only** the pods that have the label `env=dev`. Leave the `env=prod` pods running.\n\n```bash\n# Verify which pods are left:\nkubectl get pods --show-labels\n```",
"hints": [
{
"title": "Delete with selector",
"body": "Use `kubectl delete pods` with the `-l` flag.",
"command": "kubectl delete pods -l env=dev"
}
],
"setup_commands": [
{
"command": "kubectl run dev-1 --image=nginx:alpine -l env=dev"
},
{
"command": "kubectl run dev-2 --image=nginx:alpine -l env=dev"
},
{
"command": "kubectl run dev-3 --image=nginx:alpine -l env=dev"
},
{
"command": "kubectl run prod-1 --image=nginx:alpine -l env=prod"
},
{
"command": "kubectl run prod-2 --image=nginx:alpine -l env=prod"
}
],
"validation": {
"commands": [
{
"description": "No 'env=dev' pods exist",
"command": "kubectl get pods -l env=dev --no-headers 2>/dev/null | wc -l | tr -d ' '",
"expected_output": "0",
"match": "exact"
},
{
"description": "Prod pods are still running",
"command": "kubectl get pods -l env=prod --no-headers 2>/dev/null | wc -l | tr -d ' '",
"expected_output": "2",
"match": "exact"
}
]
},
"default_namespace": "default",
"teardown_commands": [
{
"command": "kubectl delete pods -l env=dev --ignore-not-found --grace-period=0 --force"
},
{
"command": "kubectl delete pods -l env=prod --ignore-not-found --grace-period=0 --force"
}
]
}