원클릭으로
kubenow
Kubernetes resource analysis and cost optimization — deterministic analysis, policy-gated apply, real-time monitoring
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Kubernetes resource analysis and cost optimization — deterministic analysis, policy-gated apply, real-time monitoring
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | kubenow |
| description | Kubernetes resource analysis and cost optimization — deterministic analysis, policy-gated apply, real-time monitoring |
| user-invocable | false |
| metadata | {"requires":{"bins":["kubenow"]}} |
Deterministic cost analysis, policy-gated resource alignment, and real-time monitoring for Kubernetes clusters.
brew install ppiankov/tap/kubenow
Find over-provisioned resources via Prometheus. Subcommands: requests-skew, node-footprint.
Flags:
--prometheus-url — Prometheus endpoint URL--format json — output format: table, json, sarif--window — time window for analysis (default: 3d)--namespace-include — namespace include pattern--namespace-exclude — namespace exclude pattern--export-file — export results to file--compare-baseline — compare against saved baseline--save-baseline — save results as baseline--fail-on — exit non-zero on severity: critical, warning--obfuscate — obfuscate workload/namespace names--cost-cpu — cost per CPU core per hour in dollars--cost-memory — cost per GiB memory per hour in dollars--instance-type — node instance type for pricing lookup (e.g., m5.xlarge, n2-standard-4)JSON output:
{
"metadata": {
"tool": "kubenow",
"command": "analyze requests-skew",
"window": "3d"
},
"workloads": [
{
"namespace": "production",
"name": "payment-api",
"kind": "Deployment",
"containers": [
{
"name": "payment-api",
"cpu": {"request": "4.0", "p99_actual": "0.5", "skew": 8.0, "recommendation": "500m"},
"memory": {"request": "4Gi", "p99_actual": "1.2Gi", "skew": 3.3, "recommendation": "2Gi"}
}
],
"safety_rating": "CAUTION",
"estimated_monthly_waste": 42.50
}
],
"summary": {"workloads_analyzed": 12, "safe": 8, "caution": 2, "risky": 1, "unsafe": 1, "total_monthly_waste": 180.00}
}
Exit codes:
Export resource recommendations as structured patches for GitOps workflows.
Flags:
--format — output format: patch, manifest, diff, json, kustomize, helm-o, --output — write to file instead of stdoutFormats:
patch — SSA-compatible YAML patch (pipe to kubectl apply)manifest — full manifest with recommended valuesdiff — unified diff for reviewjson — machine-readable JSONkustomize — kustomization.yaml + strategic merge patchhelm — values.yaml fragment with resource overridesValidate whether past recommendations were accurate by comparing post-apply metrics against new resource requests.
Flags:
--audit-path — path to audit bundle directory (required)--prometheus-url — Prometheus endpoint for post-apply usage metrics--format — output format: table, json--since — only show applies within this window (e.g., 7d, 30d, 24h)JSON output:
{
"recommendations": [
{
"workload": "nginx/web",
"resource": "cpu",
"old_request": "500m",
"new_request": "250m",
"applied_at": "2026-02-15T10:00:00Z",
"peak_usage": "220m",
"utilization_pct": 88,
"outcome": "SAFE"
}
],
"summary": {"total": 47, "safe": 44, "tight": 2, "wrong": 1, "accuracy_pct": 93.6}
}
Outcome classifications:
Real-time TUI for cluster problems.
Flags:
--format json — output format--severity — minimum severity filter--namespace — namespace filter--no-mesh — disable service mesh monitoringPrint version information.
Flags:
--json — output version as JSONJSON output:
{
"version": "0.4.0",
"commit": "e9b8f18",
"built": "2026-03-02T11:50:11Z",
"goVersion": "go1.25.7",
"os": "darwin",
"arch": "arm64"
}
Not implemented. No config file required. Kubenow reads flags, environment variables, and an optional policy file.
# List RISKY/UNSAFE workloads
kubenow analyze requests-skew --prometheus-url "$PROM_URL" --format json --export-file - | jq '.workloads[] | select(.safety_rating == "RISKY" or .safety_rating == "UNSAFE")'
# Get total CPU waste
kubenow analyze requests-skew --prometheus-url "$PROM_URL" --format json --export-file - | jq '[.workloads[].containers[].cpu.skew] | add'
# Get monthly cost waste estimate
kubenow analyze requests-skew --prometheus-url "$PROM_URL" --cost-cpu 0.048 --cost-memory 0.006 --format json --export-file - | jq '.summary.total_monthly_waste'
# Export recommendations as kustomize patches
kubenow pro-monitor export deployment/payment-api -n production --format kustomize -o patches/
# Track recommendation accuracy over 30 days
kubenow pro-monitor track --audit-path /var/lib/kubenow/audit --prometheus-url "$PROM_URL" --format json --since 30d | jq '.summary.accuracy_pct'
# CI gate
kubenow analyze requests-skew --prometheus-url "$PROM_URL" --format json --fail-on critical
# Version check in CI
kubenow version --json | jq -r '.version'