Refactor k8s_backend, add sample_app manifests, merge tiered curriculum
#2
by quantranger - opened
Split monolithic k8s_backend.py (830โ220 lines) into focused modules:
- constants.py: shared topology, HEALTHY_STATE with container_name + liveness_probe fields
- k8s_commands.py: CommandHandler with dict-based dispatch + tabulate + None-hardening
- k8s_injectors.py: FailureInjector with container_name lookup
Also:
- Added sample_app/ K8s manifests for all namespaces
- Merged tiered difficulty (DIFFICULTY_TIERS) with fault-type mastery tracking (FAULT_TIERS, pick_fault_type, graduation)
- Added WARMUP_SCENARIOS for LLM-free low-difficulty episodes
- Reconciled topology to match sample_app manifests
- Ported None-hardening fixes into new modules
- Removed unused google-auth deps, added tabulate
Push from: https://huggingface.co/spaces/quantranger/kube-sre-gym