Loading...
Load Preset
Kubernetes Manifest YAML
0 lines

About Kubernetes YAML Validator

Kubernetes YAML Validator is a comprehensive client-side tool built to validate Kubernetes resource manifests against essential syntax, required field schemas, and operational best practices.

It supports multi-document files separated by three dashes (---), validates core metadata and workloads including Pod, Deployment, Service, Ingress, ConfigMap, Secret, Job, and CronJob, and flags missing probes or resource limits.

Key features

  • Multi-Document Manifest Validation Seamlessly parses and validates multiple Kubernetes resource declarations defined in a single file separated by --- delimiters.
  • Essential & Required Field Verification Verifies mandatory attributes including apiVersion, kind, metadata.name (DNS-1123 RFC compliance), and workload-specific spec configurations.
  • Kind-Specific Schema Checking Validates workload specs for Pods, Deployments, StatefulSets, Services (ports & targetPorts), Ingress (pathTypes), and CronJobs (cron schedule syntax).
  • Security & Operational Best Practices Detects missing CPU/memory resource limits, containers using :latest image tags, absent liveness/readiness probes, and deprecated apiVersions.

How to validate Kubernetes YAML manifests

Follow this procedure to validate and harden your Kubernetes manifest files before deploying with kubectl.

  1. Paste or choose K8s manifest Paste your Kubernetes YAML manifest into the editor or pick one of the full-stack templates such as Deployment + Service + Ingress.
  2. Review status and document overview Examine the summary bar to see total resources detected, overall validity, and warning or error counts.
  3. Inspect issues by severity Click on any error or best-practice suggestion in the issues list to pinpoint the exact field path and line number in the editor.
  4. Explore resource cards and export Browse the detected resources tab to verify names, namespaces, and selectors, then format or copy the validated YAML.

Usage tips

  • Always specify CPU and memory requests and limits to prevent containers from starving neighboring pods on nodes.
  • Avoid using the :latest tag in production manifests to prevent unexpected image updates during container restarts.
  • Ensure the matchLabels defined in spec.selector match the labels defined in spec.template.metadata.labels for Deployments.
  • Resource names must comply with RFC 1123: lowercase alphanumeric characters or hyphens (-), starting and ending with an alphanumeric character.

Frequently asked questions

Yes. The validator parses multi-document YAML files separated by --- and validates each Kubernetes resource independently with individual status indicators.
The validator includes specialized schema checks for Pod, Deployment, StatefulSet, DaemonSet, Service, Ingress, ConfigMap, Secret, Job, CronJob, PersistentVolumeClaim, and Namespace.
No. All validation runs completely client-side in your browser, ensuring your cluster configurations and secret manifests remain private on your computer.
The tool checks for missing resource limits, untagged or :latest container images, missing readiness and liveness probes, privileged execution, and deprecated API versions.