How to validate Kubernetes YAML
Paste your manifests or open a local YAML file, then select Validate. You can check multiple resources separated by --- in one pass. Select an issue to jump to the affected line. The file is processed in your browser.
What does the Kubernetes YAML validator check?
The validator checks YAML syntax and duplicate keys, then uses the built-in Kubernetes 1.37.2 schemas to check resource fields and value types. Try it with a Deployment, Service, ConfigMap, or a List of resources. A missing schema means the resource could not be checked against this release.
Check against your Kubernetes cluster
Use a server-side dry run to check custom resources and cluster-specific admission rules. The cluster runs its validation and admission checks without persisting the resources.
kubectl apply --dry-run=server -f manifest.yaml