$ recombobulate _
home / tips / write-kubernetes-manifests-from-a-plain-english-description
0

Write Kubernetes Manifests from a Plain-English Description

bagwaa @bagwaa · Mar 25, 2026 · Workflows
write-kubernetes-manifests-from-a-plain-english-description

Kubernetes manifests are full of boilerplate that's easy to get subtly wrong — label selectors that don't match, readiness probes with the wrong timing, missing resource limits. Describe what you need and let Claude handle the YAML.

Write Kubernetes manifests for a Node.js API service:
- Deployment with 3 replicas, rolling update strategy
- Image: my-registry/api:latest, port 3000
- Resource limits: 512Mi memory, 500m CPU
- Readiness probe on GET /health with a 5s initial delay
- ClusterIP Service exposing port 80 → container port 3000
- ConfigMap for non-secret environment variables

Claude will produce well-structured YAML with proper labels, selector consistency, and sensible defaults — the kind of boilerplate that's easy to get slightly wrong by hand.

spec:
  replicas: 3
  strategy:
    type: RollingUpdate
  template:
    spec:
      containers:
        - name: api
          resources:
            limits:
              memory: "512Mi"
              cpu: "500m"
          readinessProbe:
            httpGet:
              path: /health
              port: 3000
            initialDelaySeconds: 5

Ask it to add a HorizontalPodAutoscaler, Ingress, or NetworkPolicy as follow-up requests — each one builds on the labels and names already defined, so Claude keeps everything consistent.

Describing intent in plain English and letting Claude handle the YAML syntax beats the Kubernetes docs every time.

~/recombobulate $ tip --comments --count=0

Log in to leave a comment.

~/recombobulate $ tip --related --limit=3
0
Scan Pending Changes for Security Issues with /security-review

The /security-review command scans your uncommitted changes for injection vectors, auth gaps, hardcoded secrets, and other common vulnerabilities.

bagwaa @bagwaa · 2 hours ago
0
Run Setup Scripts on Every Session with the SessionStart Hook

The SessionStart hook fires when any session begins or resumes, making it ideal for loading environment variables and running one-time setup scripts.

bagwaa @bagwaa · 2 hours ago
0
Write Property-Based Tests with fast-check and Claude

Ask Claude to write property-based tests for your functions using fast-check — it identifies the mathematical invariants in your code and generates tests that cover inputs you'd never enumerate by hand.

bagwaa @bagwaa · 2 hours ago