Skip to main content

Kubernetes YAML Validator

Paste any Kubernetes manifest — Deployment, Service, ConfigMap, StatefulSet — and instantly check it for structural errors, security issues, and production best practices. No kubectl, no cluster required.

✓ 60K+ developers trust DevPlaybook ✓ Runs 100% in your browser ✓ 9 validation checks

Frequently Asked Questions

What does a Kubernetes YAML validator check?▼

A Kubernetes YAML validator checks your manifest files for structural correctness and best practices. This includes required fields like apiVersion, kind, and metadata; image tag pinning; CPU and memory resource limits; liveness and readiness probes; hardcoded secrets in environment variables; namespace specification; and YAML syntax errors like tab characters.

Why should I pin image tags instead of using :latest?▼

Using :latest means every Pod restart or new node may pull a different image version, leading to non-deterministic deployments. A :latest tag on one node may differ from another, causing subtle bugs. Pin to a specific version tag (e.g. nginx:1.25.3) or a full image digest (sha256:...) for reproducible, auditable deployments. This is especially critical in production where rollbacks need to be predictable.

What are resource requests and limits in Kubernetes?▼

Requests tell the Kubernetes scheduler how much CPU and memory a container needs — the scheduler uses this to place the Pod on a suitable Node. Limits cap the maximum resources a container can consume. If a container exceeds its CPU limit, it gets throttled. If it exceeds its memory limit, the container is OOMKilled (killed and restarted). Best practice: always set both. Use millicores for CPU (e.g. 500m = 0.5 CPU) and mebibytes for memory (e.g. 256Mi).

What is the difference between a liveness probe and a readiness probe?▼

A liveness probe checks if the container is still running and healthy. If it fails, Kubernetes restarts the container. A readiness probe checks if the container is ready to receive traffic. If it fails, the Pod is removed from Service endpoints — traffic stops routing to it until it recovers. Use liveness probes to catch deadlocks; use readiness probes to prevent routing to containers that are still starting up or temporarily degraded.

How should I store secrets in Kubernetes?▼

Never hardcode passwords, API keys, or tokens directly in Pod spec environment variables — they show up in kubectl describe output and logs. Instead, use Kubernetes Secrets (valueFrom.secretKeyRef) to inject sensitive values. For production, consider external secret management: HashiCorp Vault, AWS Secrets Manager, GCP Secret Manager, or Azure Key Vault, synced to the cluster via an operator like External Secrets Operator.

Why should I specify a namespace in my manifests?▼

Without an explicit namespace, resources deploy to the 'default' namespace. In multi-team or production environments, the default namespace quickly becomes cluttered and lacks proper RBAC isolation. Explicitly specify namespaces in manifests so deployments are always predictable regardless of your kubectl context. Create namespaces per team, environment, or application for clean separation of concerns.

Share this tool: X / Twitter LinkedIn
✓ 60,000+ developers use DevPlaybook ★★★★★ 4.8 / 5 on Gumroad ✓ MIT licensed · Instant download ✓ No login required

Related Products

on Gumroad

You Might Also Need

More Free Tools

Enjoying this tool? Get more like it.

Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.

DevPlaybook Pro 7 days free

Unlock AI-Powered Dev Tools

  • ⚡ AI Code Review, Doc Generator & SQL Builder
  • ⚡ All premium templates & early access
  • ⚡ Member discounts on Gumroad products
Start Free Trial →

$9/mo after trial · Cancel anytime

Want the full toolkit?

Get DevPlaybook Pro

Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.

$79
$241 separately Save $162 (67% off)
Get DevPlaybook Pro — $79 →

MIT licensed · Instant download · No subscription

See what's included → Browse all deals →