apiVersion v1
kind ReplicationController
metadata
name"bob"
spec
replicas2
selector
app nginx
template
metadata
name nginx
labels
app nginx
spec
containers
name nginx
image nginx
ports
containerPort80
Validate kubernetes YAML
This online tool is designed for validating Kubernetes manifests, enabling you to ensure your Kubernetes configurations are accurate and compliant. It uses Kubeconform (You can incorporate it into your CI, or use it locally to validate your Kubernetes configuration), it exclusively validates manifests against the official Kubernetes OpenAPI specifications. Visit the Kubeconform repository for more information. This tool is provided 'as is,' without any guarantees or warranties. Users are responsible for verifying all configurations independently before deploying to production environments.
What is a Kubernetes Manifest?
A Kubernetes manifest is a YAML or JSON file that defines the desired state of a Kubernetes resource, such as Pods, Deployments, Services, or ConfigMaps. It describes the configuration and behavior of these resources, allowing Kubernetes to manage them efficiently. Properly validated manifests are critical to avoid deployment errors and ensure smooth operations within your Kubernetes cluster.