kube-scout
Purpose
Review Kubernetes YAML before apply and surface risky workload settings in a compact report.
Runbook
- Point the skill at one or more manifest files or directories containing YAML.
- Run
scripts/audit.pyto inspect pod specs, init containers, volumes, and top-level networking flags. - Prioritize findings that affect runtime safety first: privileged containers, hostPath mounts, and host networking.
- Treat the report as a pre-apply review; do not mutate manifests automatically.
Stop conditions
- Abort if PyYAML is unavailable, because partial parsing is riskier than no report.
- Abort if the target variant is marked unsupported.
- Abort before approving deployment of a manifest that still has unresolved critical findings.
Output format
- JSON summary of resources scanned
- Critical and warning findings with file, resource, and reason
- Counts for missing limits, privileged containers, and weak image pinning
Example invocations
python3 skills/kube-scout/scripts/audit.py k8s/python3 skills/kube-scout/scripts/audit.py deployment.yaml --markdown