CtrlK
BlogDocsLog inGet started
Tessl Logo

nitinjain999/platform-skills

Production-grade platform engineering handbook — Kubernetes, Terraform, Flux CD, GitHub Actions, AWS, and more.

67

Quality

84%

Does it follow best practices?

Impact

No eval scenarios have been run

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

README.mdexamples/demo/kubernetes-prod-review/

Demo: Kubernetes Production Review

Status: Stable

A realistic Kubernetes Deployment that platform-skills catches before it reaches production.

What's wrong with bad.yaml

FindingSeverityRisk
image: latest — unpinned tagCriticalNon-reproducible deploys; silent rollouts
No securityContextCriticalContainer runs as root; writable filesystem
No resources limits/requestsHighOOMKill in production; noisy neighbour
No readinessProbeHighTraffic hits the pod before the app is ready
Hardcoded DATABASE_URL with credentialsHighSecret exposed in manifest and pod spec

What changed in fixed.yaml

  • Pinned image tag (v1.4.2) — reproducible, auditable
  • securityContext at pod and container level — non-root, read-only filesystem, all capabilities dropped
  • resources.requests and resources.limits — predictable scheduling
  • readinessProbe and livenessProbe — safe traffic and self-healing
  • Credentials moved to secretKeyRef — secret stays in Kubernetes Secrets
  • Dedicated serviceAccountName — least-privilege identity

Blast radius of bad.yaml in production

  • OOMKill during traffic spike → pod restart loop → degraded availability
  • Root container breakout → node compromise
  • Silent image update on next deploy → unknown code in production
  • Credentials in pod spec → visible in kubectl describe pod output

Validation

kubectl apply --dry-run=client -f fixed.yaml
kubectl auth can-i --list --as=system:serviceaccount:production:api-server

Rollback

kubectl rollout undo deployment/api-server -n production
kubectl rollout status deployment/api-server -n production

Try it yourself

Use $platform-skills to review this Kubernetes Deployment for production readiness:
securityContext, resources, probes, lifecycle, service account, and RBAC.

examples

demo

kubernetes-prod-review

BEFORE_AFTER.md

CHANGELOG.md

CODE_OF_CONDUCT.md

COMMANDS.md

CONTRIBUTING.md

EDITOR_INTEGRATIONS.md

GETTING_STARTED.md

HOW_IT_WORKS.md

install.sh

INSTALLATION.md

LAUNCH.md

PROMPTS.md

QUICKSTART.md

README.md

renovate.json

SECURITY.md

SKILL.md

tessl.json

tile.json