Kube Scout

Audit Kubernetes manifests for unsafe defaults, missing limits, and weak image pinning.

sahit-sai Updated

File contents

kube-scout

Purpose

Review Kubernetes YAML before apply and surface risky workload settings in a compact report.

Runbook

  1. Point the skill at one or more manifest files or directories containing YAML.
  2. Run scripts/audit.py to inspect pod specs, init containers, volumes, and top-level networking flags.
  3. Prioritize findings that affect runtime safety first: privileged containers, hostPath mounts, and host networking.
  4. Treat the report as a pre-apply review; do not mutate manifests automatically.

Stop conditions

  1. Abort if PyYAML is unavailable, because partial parsing is riskier than no report.
  2. Abort if the target variant is marked unsupported.
  3. 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

sahit-sai/saviaa/tree/main/.agents/skills/kube-scout commit 6be25471c5

Frequently asked questions

npx skillmds@latest add sahit-sai/kube-scout