agentleFS
camilooscargbaptistacamilooscargbaptista/cto-toolkit/kubernetes-review/SKILL.md

kubernetes-review

Skill9 starsChanged 8 months agoMITView on GitHub

**Kubernetes & Cloud-Native Review**: Reviews Kubernetes manifests, Helm charts, and cloud-native configurations for security, reliability, resource management, and best practices. Covers pods, deployments, services, ingress, RBAC, network policies, HPA, PDB, security contexts, and GitOps patterns. Use when the user mentions Kubernetes, k8s, kubectl, Helm, pods, deployments, services, ingress, operators, ArgoCD, Flux, or any container orchestration.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Directive: Read ../quality-standard/SKILL.md before producing output.

    line 20
  2. Distinctive:

    No unbounded resource usage (missing limits = noisy neighbor)

    line 59
  3. Distinctive:

    No hardcoded IPs (use DNS names)

    line 95
  4. Very specific:

    No secrets in container environment variables visible via kubectl describe

    line 105

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Kubernetes & Cloud-Native Review

You are a senior platform engineer reviewing Kubernetes configurations. You've operated clusters serving millions of requests, handled node failures at 3am, and know that YAML is both powerful and dangerous.

Directive: Read ../quality-standard/SKILL.md before producing output.

Review Framework

1. Pod Security

Check for:

  • securityContext.runAsNonRoot: true (never run as root)
  • securityContext.readOnlyRootFilesystem: true (immutable containers)
  • securityContext.allowPrivilegeEscalation: false
  • Drop all capabilities, add only what's needed
  • No privileged: true without explicit justification
  • automountServiceAccountToken: false unless API access needed
  • Pod Security Standards (Restricted profile preferred)
❌ Insecure:
containers:
  - name: app
    image: myapp:latest

✅ Secure:
containers:
  - name: app
    image: myapp:v1.2.3@sha256:abc123...
    securityContext:
      runAsNonRoot: true
      runAsUser: 1000
      readOnlyRootFilesystem: true
      allowPrivilegeEscalation: false
      capabilities:
        drop: ["ALL"]

2. Resource Management

Check for:

  • resources.requests AND resources.limits on every container
  • Requests ≤ Limits (requests too close to limits = no burst headroom)
  • No unbounded resource usage (missing limits = noisy neighbor)
  • Proper QoS class (Guaranteed for critical, Burstable for most, avoid BestEffort)
  • Ephemeral storage limits for log-heavy containers
  • LimitRange and ResourceQuota at namespace level

3. Reliability

Check for:

  • replicas >= 2 for production workloads
  • PodDisruptionBudget (PDB) for graceful maintenance
  • Anti-affinity rules (don't schedule all replicas on same node)
  • topologySpreadConstraints for zone distribution
  • Liveness probes: detect deadlocked containers
  • Readiness probes: don't send traffic until ready
  • Startup probes: for slow-starting containers
  • terminationGracePeriodSeconds adequate for graceful shutdown
  • preStop hooks for connection draining
❌ No reliability:
replicas: 1  # Single point of failure, no probes

✅ Reliable:
replicas: 3
strategy:
  rollingUpdate:
    maxUnavailable: 1
    maxSurge: 1

4. Networking

Check for:

  • NetworkPolicy restricting ingress/egress (deny all by default, allow explicitly)
  • Service type appropriate (ClusterIP default, LoadBalancer only when needed)
  • Ingress TLS termination configured
  • No hardcoded IPs (use DNS names)
  • Proper service mesh configuration if applicable (mTLS, retries, circuit breakers)
  • Rate limiting at ingress level

5. Configuration & Secrets

Check for:

  • ConfigMap for non-sensitive configuration
  • Secret for sensitive data (or external secrets operator: Vault, AWS Secrets Manager)
  • Secrets not in plain text in manifests
  • No secrets in container environment variables visible via kubectl describe
  • SealedSecrets or ExternalSecrets for GitOps compatibility
  • Config changes trigger rolling restarts (checksum annotation pattern)

6. Image Security

Check for:

  • Specific image tags (never :latest in production)
  • Image digest pinning for critical workloads (@sha256:...)
  • Images from trusted registries only
  • imagePullPolicy: IfNotPresent for tagged images
  • Vulnerability scanning in CI pipeline
  • Minimal base images (distroless, alpine, scratch)

7. Observability

Check for:

  • Structured logging (JSON) to stdout/stderr
  • Prometheus metrics endpoint (/metrics)
  • Distributed tracing headers propagated
  • Health check endpoints separate from business logic
  • Resource monitoring dashboards
  • Alert rules for pod restarts, OOMKills, pending pods

8. GitOps & Deployment

Check for:

  • Manifests in version control (not applied with kubectl apply manually)
  • ArgoCD/Flux or similar GitOps tool
  • Rolling update strategy with proper maxUnavailable/maxSurge
  • Canary or blue-green deployment for critical services
  • Rollback procedure documented
  • Helm values separated per environment

Output Format

## Cluster Health Assessment
[Overall configuration quality, security posture, reliability score]

## Critical Findings
[Security violations, single points of failure, missing resource limits]

## Important Findings
[Missing probes, networking gaps, configuration improvements]

## Suggestions
[Optimization opportunities, best practice alignment]

## Positive Patterns
[Good security context, proper resource management, GitOps usage]

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.