CareerByteCode

Kubernetes YAML Validator (Manifest Checker)

For DevOps engineers and developers writing Kubernetes manifests. Paste one or many documents to catch the mistakes that make kubectl apply fail or cause trouble later.

FreeRuns in your browserNothing uploadedNo sign-up neededAll 16 tools in the DevOps Toolbox
Keep this resultSign in to email it to yourself or save it to your profile. The tool itself never needs an account.

ByteLabs

Close the gaps with real-world projects

Build industry projects on ByteLabs and add verified proof of your skills to your public profile.

Explore ByteLabs
How to use

How to use the Kubernetes YAML Validator

  1. Paste your manifest; separate several documents with ---.
  2. Click Validate.
  3. Fix the errors first, then the warnings and tips.
  4. Before you apply, also run kubectl apply --dry-run=server -f file.yaml.
Worked example

An example, step by step

You enter

A Deployment whose selector says app: web while the pod label says app: web-app, image nginx:latest, plus a Service selecting app: web

The tool shows

2 documents: 1 error (the selector does not match the pod template label), 3 warnings (:latest image, no resource requests, the Service matches no pod) and 5 tips (1 replica, no memory limit, no probes, privilege escalation)

FAQ

Questions about the Kubernetes YAML Validator

Why does my Deployment say selector does not match template labels?

spec.selector.matchLabels must be a subset of spec.template.metadata.labels. If they differ, the API server rejects the Deployment.

Which Kubernetes APIs were removed?

For example extensions/v1beta1 and apps/v1beta1 (1.16), networking.k8s.io/v1beta1 Ingress (1.22) and batch/v1beta1 CronJob (1.25). The validator names the current apiVersion to use.

Is my YAML sent to a server?

No. It is parsed and checked in your browser, so manifests with internal names stay private.

Is the Kubernetes YAML Validator free and private?

Yes. It is free, needs no sign-up and runs entirely in your browser, so what you type is not uploaded. You only sign in if you want to email a result to yourself or save it to your CareerByteCode profile.

Copied