>_toolkitbox

~/tools / Kubernetes YAML Validator

Kubernetes YAML Validator

Check a Kubernetes manifest's (Deployment/Service, etc.) YAML syntax and basic required fields — apiVersion, kind, metadata.name, and more.

A quick sanity check before you apply: is the YAML itself broken, and does it have the minimum fields a Kubernetes manifest needs? This is not a substitute for real cluster-side schema validation (e.g. kubectl apply --dry-run).

# Use Cases

  • Double-checking a manifest has the required fields (apiVersion/kind/metadata.name, etc.) before you kubectl apply it
  • Quickly checking whether someone else's Deployment manifest specifies spec.selector and spec.template
  • Running as a lightweight pre-apply check in CI

# Usage

  1. Paste the manifest YAML you want to check.
  2. Click "Validate" to see whether there are YAML syntax errors and the results of checking basic fields like apiVersion/kind/metadata.name.
  3. For Deployment and similar kinds, spec.selector / spec.template presence is also checked.

# FAQ

Does this replace kubectl?
No. This only checks YAML syntax and the presence of basic fields — it doesn't perform real schema validation against the Kubernetes API server. Also run kubectl apply --dry-run=client before applying to production.
Is this an official Kubernetes tool?
No, this is an independent, unofficial checker. Kubernetes is a trademark of the Kubernetes Authors.

# Related