Przejdź do treści
Biblioteka skilli
DevOps i chmura · Przegląd i audyt

kubernetes-optimizer

/kubernetes-optimizer

Audytuje manifesty i obciążenia Kubernetes pod kątem żądań i limitów, sond, RBAC, sieci i kosztów, z pomiarami przed i po.

Licencja
MIT
Ostatnia zmiana repozytorium
04.11.2026

Ocena i bezpieczeństwo

85/ 100Klasa: dobry
Format20 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść25 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
11
Skrypty
1
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 04.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co sprawdzić przed instalacją
  • 1 skrypt w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: scripts/audit.py

Co robi i kiedy

Audytuje manifesty i obciążenia Kubernetes pod kątem żądań i limitów, sond, RBAC, sieci i kosztów, z pomiarami przed i po.

Oryginalny opis (EN)

Audit and optimize Kubernetes manifests and workloads (Kubernetes 1.37 current, 1.36/1.35 supported, 1.34 EOL) for requests/limits and scheduling, probes and lifecycle, securityContext/Pod Security/RBAC, Services/Ingress/NetworkPolicy, HPA/PDB/autoscaling and cost, observability, deprecated APIs and safe upgrades, with real before/after measurement. Always produces a written findings report and a fix plan for approval before touching code. Use this whenever the user mentions Kubernetes manifests, Helm/Kustomize, resource requests/limits, OOMKilled/CrashLoopBackOff, readiness/liveness probes, H

Jak działa

  1. Workflow
  2. Principles
Sekcje z nagłówków SKILL.md, w oryginale · 63 linii, 632 słów
Podgląd SKILL.md
---
name: kubernetes-optimizer
description: Audit and optimize Kubernetes manifests and workloads (Kubernetes 1.37 current, 1.36/1.35 supported, 1.34 EOL) for requests/limits and scheduling, probes and lifecycle, securityContext/Pod Security/RBAC, Services/Ingress/NetworkPolicy, HPA/PDB/autoscaling and cost, observability, deprecated APIs and safe upgrades, with real before/after measurement. Always produces a written findings report and a fix plan for approval before touching code. Use this whenever the user mentions Kubernetes manifests, Helm/Kustomize, resource requests/limits, OOMKilled/CrashLoopBackOff, readiness/liveness probes, HPA/PDB, NetworkPolicy, RBAC, Pod Security, cluster upgrades, K8s cost, or "optimize my Kubernetes setup" -- even if they never say audit or optimize.
---

# Kubernetes Optimizer

Audit a Kubernetes workload/config, report what is unsafe, unreliable or expensive and why, agree a plan, then change it. Order: evidence, approval, edits. Cluster changes can cause outages; nothing is applied before approval.

## Workflow

### 1. Scope (quick)

- Find the manifests/Helm/Kustomize and record: cluster version (1.37 current; 1.36/1.35 supported; 1.34 EOL), distribution, ingress/CNI/CSI, autoscaler, workload types, namespaces and environment.
- Run `python <skill-dir>/scripts/audit.py <repo-root>` -- static scan for floating images, missing probes/resources/securityContext, privileged/host access, deprecated APIs, missing PDB/NetworkPolicy/HPA, secrets in env and risky Services/Ingress, with file:line evidence. Use `--json` to post-process.
- Classify the pain: reliability (OOM/crash/restarts), latency/throughput, scheduling/capacity, security/compliance, cost, or upgrade risk. Ask which hurts if unclear.
- Read `references/upgrades-tooling.md` once: what can be measured here (`kubectl`, metrics-server, kube-state-metrics, scans, cost tools).

### 2. Audit

The script finds cheap leads; you find the rest by reading the manifests and the live cluster. Load only what applies:

| Area | Reference |
|------|-----------|
| Deployments/StatefulSets, probes, requests/limits, lifecycle, PDB, topology | `references/workloads.md` |
| Services, Ingress, NetworkPolicy, DNS, mTLS | `references/networking.md` |
| securityContext, Pod Security, RBAC, secrets, admission | `references/security.md` |
| HPA/VPA/autoscaling, scheduling, capacity and cost | `references/scaling-cost.md` |
| Metrics, logs, traces, events, SLOs and alerts | `references/observability.md` |
| API deprecations, cluster upgrades, validation/scanning tools | `references/upgrades-tooling.md` |

**Measure, never guess.** Read the live objects (`kubectl get/describe`), metrics (CPU/memory throttling, OOMKills, restarts, pending pods), events and traces. A YAML review without cluster evidence is a hypothesis; a healthy pod at low load is not capacity proof.

Mark each finding **Confirmed** (kubectl/metrics/event/code evidence) or **Suspected** (needs measuring).

### 3. Report

Fill `assets/report-template.md`, save it as `KUBERNETES_OPTIMIZATION_REPORT.md` in the repo root, and show the user. Five-line summary, findings table by impact/effort/risk, then per-finding detail (evidence, why it hurts, fix, risk, rollout/rollback). Group near-duplicates.

### 4. Plan -- then stop for approval

Use plan mode: `EnterPlanMode` (load with ToolSearch if deferred), write the plan, present with `ExitPlanMode`; if unavailable show it in chat and wait for an explicit "go". Structure:

1. **Quick wins** -- pin images, set requests/limits, add readiness/startup probes, securityContext, PDB, NetworkPolicy, HPA, fix deprecated APIs. Low risk, manifest-only.
2. **Structural** -- right-size requests from metrics, split workloads, topology spread/anti-affinity, HPA/VPA strategy, ingress/TLS, RBAC least privilege, resource quotas, cost labels. Name each behavior change.
3. **Heavy** -- cluster upgrade, CNI/CSI/ingress replacement, autoscaler migration, multi-cluster/multi-tenant architecture. Separately approved with a staged rollout.
   Each step: files/cluster objects touched, expected effect, how to verify, how to roll back.

### 5. Fix

Only approved items, in small groups. After each: `kubectl diff`/server-side dry-run, policy/scan checks, rollout status, and the relevant metrics. A break must trace to one change. Do not mix a cluster upgrade with workload optimization. If a change alters availability (PDB/replicas), security posture, or network reachability, stop and ask.

### 6. Verify and wrap up

Re-check the same objects/metrics: restarts/OOMKills, pending pods, CPU throttling, p95/p99 latency, availability during rollout, HPA behavior, cost. State plainly what could not be measured. End with deferred items and one suggested next step.

## Principles

- **Requests are scheduling; limits are enforcement.** Set requests from measured usage, not guesses.
- **Probes must reflect readiness, not liveness theater.** Startup protects slow boots; readiness removes traffic; liveness restarts only true hangs.
- **Least privilege by default.** Non-root, no privilege escalation, read-only rootfs, dropped capabilities, scoped RBAC.
- **Availability is a budget.** PDB, replicas, topology spread and graceful termination are part of correctness.
- **Network is deny-by-default where possible.** NetworkPolicy + explicit ingress/egress.
- **Autoscaling needs signals.** HPA on meaningful metrics, requests set, and a node autoscaler that can react.
- **Upgrade one minor at a time.** Check deprecated APIs and add-on compatibility before the control plane moves.
- **Cost is a workload property.** Requests, replicas, storage class and idle capacity have owners.
Pliki w paczce (11)
  • LICENSE 1 KB
  • README.md 1 KB
  • SKILL.md 6 KB
  • assets/report-template.md 1 KB
  • references/networking.md 2 KB
  • references/observability.md 2 KB
  • references/scaling-cost.md 2 KB
  • references/security.md 2 KB
  • references/upgrades-tooling.md 2 KB
  • references/workloads.md 2 KB
  • scripts/audit.py 10 KB

Wersje

W bazie nie ma innych skilli o nazwie kubernetes-optimizer.

Migawka bazy z 13.11.2026 · wersja paczki ca2437693bd6 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100k8s-manifest-preapply-review
    Przegląda manifesty Kubernetes przed kubectl apply, w tym Deployments, RBAC i NetworkPolicy, i zgłasza ustalenia według ważności z poprawkami YAML.
  • 100kubernetes-expert
    Pomaga w Kubernetes: workloady, usługi, konfiguracja, sondy, zasoby i rozwiązywanie problemów, w tym pisanie manifestów i debugowanie CrashLoopBackOff, ImagePullBackOff i OOMKilled.
  • 90docker-kubernetes
    Podpowiada produkcyjne wzorce Docker i Kubernetes: Deployment z limitami, HPA, sondy, NetworkPolicy i RBAC.
  • 90Kubernetes
    Diagnozuje i sprawdza manifesty Kubernetes w tym pody, sondy, zasoby, wdrożenia, usługi, przechowywanie i RBAC, gdy coś nie działa.
  • 100kubernetes
    Pomaga pisać, przeglądać, utwardzać i debugować manifesty Kubernetes i Helm: Deployments, Services, Ingress, RBAC, NetworkPolicy oraz operacje na klastrze.
  • 100kubernetes-deployments
    Pisze i debuguje produkcyjne obciążenia Kubernetes: zasoby, sondy zdrowia, aktualizacje kroczące, budżety zakłóceń i HPA.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.