Kubernetes YAML Validator
Validate Kubernetes YAML files for syntax errors and missing fields.
YAML Content
Result
What is Kubernetes YAML Validator?
The Kubernetes YAML Validator parses YAML and checks the presence of apiVersion, kind and metadata.name in each document. For selected workload and networking kinds it also looks for spec. It does not load Kubernetes schemas, discover your cluster’s API resources or validate custom resource definitions.
How to use Kubernetes YAML Validator
Paste {apiVersion: v1, kind: ConfigMap, metadata: {name: demo}, data: {mode: "test"}} and choose Validate. This ConfigMap example should produce “No problems found”. ConfigMaps do not need spec in this check. Multiple manifests can be separated by --- on a line of its own; warnings identify the document number.
When is Kubernetes YAML Validator useful?
Use this check to find syntax errors or an omitted name in a small manifest before checking it against the intended Kubernetes API. A parsed YAML document is not necessarily an accepted Kubernetes resource. Unknown fields, field types, selectors, container specifications and cluster admission policies are outside the check.
Example
Try {apiVersion: v1, kind: ConfigMap, metadata: {}}. You should see “metadata.name is missing” for document 1. Restoring metadata: {name: demo} removes that warning. An unclosed bracket gives a YAML syntax error instead. The tool reports its selected presence checks; it does not prove that every field value is meaningful.
Practical notes
Presence rules are deliberately limited and can flag valid patterns such as resources using generateName instead of name. A spec object is not checked recursively. “No problems found” is not permission to apply a manifest to production. Consult your cluster’s schema and validation tooling for the final review. The browser does not connect to a Kubernetes API or create any resources. Reference: Kubernetes object names.