Validate Kubernetes YAML — Structural Checks

Validate Kubernetes manifests with structural browser checks: apiVersion, kind, metadata, and kind-specific rules for common resources. Not kubeconform, kubectl dry-run, or full OpenAPI schema validation against a cluster.

Loading…
Kubernetes YAML validator — structural checks
Catch missing fields and common shape mistakes in manifests before CI. Honest subset: not full schema or live-cluster validation.

Developer notes

• Parses with js-yaml loadAll; validates structure in the browser. • Checks shared fields (apiVersion, kind, metadata.name) plus kind-specific rules for a curated subset. • Not kubeconform, kubectl --dry-run, or OpenAPI schema from an apiserver. • Live debounced validation (~300 ms) in the Monaco YAML editor. • Max input 512 KB. • Results panel: verdict banner, document/kind stats, issue cards with doc index and line hints.

When teams pick this route

• Spot a missing selector or container list on a pasted Deployment. • Sanity-check multi-doc YAML from kubectl get before sharing. • Teach manifest shape with immediate feedback. • Pair with format Kubernetes after fixing issues.

Worked examples

Valid multi-document stack (ConfigMap + Service + Deployment)

Input

apiVersion: v1 kind: ConfigMap metadata: name: app-config namespace: web data: LOG_LEVEL: info --- apiVersion: v1 kind: Service metadata: name: web namespace: web spec: selector: app: web ports: - port: 80 targetPort: 80 --- apiVersion: apps/v1 kind: Deployment metadata: name: web namespace: web labels: app: web spec: replicas: 2 selector: matchLabels: app: web template: metadata: labels: app: web spec: containers: - name: web image: nginx:1.27 ports: - containerPort: 80

Validation result

Structurally valid — 3 documents, 3 kinds (ConfigMap, Service, Deployment), shared namespace web.

Missing metadata.name

Input

apiVersion: v1 kind: ConfigMap metadata: labels: app: web data: key: value

Validation result

Invalid — metadata.name required (issue with document/line hint).

Navigate related Kubernetes tools

Pretty-print with format Kubernetes, scaffold resources via generate Deployment, or browse the Kubernetes hub.

Kubernetes validator FAQ

Structural scope only

Is this kubeconform or kubectl dry-run?

No. Checks are structural and kind-aware for a subset of fields in the browser. They do not load Kubernetes OpenAPI schemas or contact a cluster.

Does a valid result mean the manifest will apply?

No. Structural OK does not guarantee admission, RBAC, image pull, or API version availability on your cluster.

Are CRDs fully validated?

Custom resources get shared-field checks only unless a kind-specific rule exists. Treat CRDs carefully.

Multi-document files?

Yes — each non-null document is checked; issues can name the document index and line when available.

Kubernetes

Multi-doc manifests, structural validate, Ingress/Deployment starters, and Helm values formatting.

Explore other tool categories

Minify

Shrink code and assets for production — minify JavaScript, CSS, HTML, JSON and XML before gzip or CDN deploy.

Beautify

Make code readable with consistent indentation — beautify JavaScript, CSS, TypeScript, SCSS, LESS, Markdown, GraphQL, SQL, YAML and more in your browser.

Unminify

Expand minified or compressed code — unminify JavaScript, CSS, TypeScript, SCSS, LESS, SQL, YAML and other formats when debugging or reviewing.

Conversion

Transform data between JSON, YAML, XML and CSV locally — no server uploads.

CSS preprocessors

Compile SCSS or LESS to standard CSS in the browser — pair with beautify or minify for a full stylesheet workflow.

JSON Tools

Validate, format, diff and explore JSON payloads — complementary to minifiers and converters.

SVG Tools

Preview, optimize with SVGO, export Data URI, resize, beautify, convert to JSX and validate SVG — all in your browser.

DevOps & Infra

Terraform HCL format/validate/minify, Dockerfile format & lint, Docker Compose and .env validation.

CI/CD

GitHub Actions and GitLab CI — format YAML and check workflow/job structure in your browser.

Logs & observability

Line-oriented JSON/NDJSON and Nginx/Apache access logs — format, filter, validate, and CSV/TSV.

Networking / IP

CIDR, subnets, and IPv4/IPv6 helpers — in your browser.

Security & tokens

JWKS, X.509 certificates, and secrets scan — browser-local.

API & schemas

OpenAPI tools to format, validate, and lint your specs.

Encoding

Encode or decode Base64, URL components and HTML entities — client-side only.

Developer utilities

Timestamps, UUID, ULID, Nanoid, cron, passwords, regex, slugify, number bases, case, text diff, and chmod — all client-side.

Text & Markdown

Count words, build Markdown TOCs, and clean line lists — all in your browser.

Serialization

Serialize and deserialize PHP data structures beside JSON workflows.