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.
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.
Related Products
on GumroadGitHub Actions CI/CD Templates Pack
12 production-ready GitHub Actions workflow templates covering Node.js, Python, Docker, multi-environment deployments, security scanning, and auto-changelog. Copy, paste, ship.
Buy on Gumroad →Developer Productivity Bundle
Stop rebuilding the same setup every project. 51 VSCode snippets, 40 Git aliases, 5 Docker Compose stacks, 5 GitHub Actions workflows, 5 README templates, and a dotfiles kit. Set up a professional dev environment in under an hour.
Buy on Gumroad →Developer Cheat Sheet Bundle
10 print-ready cheat sheets for the tools developers use every day: Git, Docker, Linux CLI, SQL, Regex, HTTP Status codes, VS Code shortcuts, Bash scripting, jq/JSON, and Markdown.
Buy on Gumroad →You Might Also Need
Docker Run Command Builder
Build complete docker run commands visually. Configure image, ports, volumes, environment variables, network, restart policy, detached mode, and more. Generates the exact docker run command.
Open free tool →
Dockerfile Linter
Paste your Dockerfile and instantly check for common issues: latest tags, missing HEALTHCHECK, running as root, cache-busting COPY order, ADD vs COPY, and multi-stage build suggestions.
Open free tool →
Dockerfile Generator
Interactive wizard to generate production-ready Dockerfiles for Node.js, Python, Go, Java, and Rust. Multi-stage builds, port config, custom layers.
Open free tool →
More Free Tools
Related Articles
Docker Compose vs Kubernetes: When to Use Each (2026)
A practical guide to choosing between Docker Compose and Kubernetes in 2026. Compare complexity, use cases, cost, and learn when to migrate from one to the other.
Pulumi vs Terraform 2026: Which IaC Tool Should You Choose?
A deep comparison of Pulumi and Terraform for infrastructure as code in 2026. Covers syntax, state management, provider ecosystem, team adoption, and when to choose each tool.
Docker vs Kubernetes: When to Use Each (2025 Guide)
Docker vs Kubernetes 2025: key differences, Docker Compose vs Kubernetes, cost comparison, and a clear decision framework with real-world use cases.
Docker vs Podman: Container Runtime Comparison 2026
Docker vs Podman container runtime comparison 2026: architecture, security, performance, migration guide, and when to choose each container tool.
Kubernetes vs Docker Swarm: Complete Guide for 2026
Comprehensive comparison of Kubernetes vs Docker Swarm covering architecture, scaling, networking, security, and use cases. Includes a comparison table and decision framework to choose the right orchestrator.
Enjoying this tool? Get more like it.
Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.
Unlock AI-Powered Dev Tools
- ⚡ AI Code Review, Doc Generator & SQL Builder
- ⚡ All premium templates & early access
- ⚡ Member discounts on Gumroad products
$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.
MIT licensed · Instant download · No subscription
See what's included → Browse all deals →