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.
API documentation
This API allows to validate Kubernetes manifest. Please use this API sparingly.
POST https://api.yamline.com/k8s/validator
Return a list of syntax errors
Payload
Your Kubernetes manifest
Response
Success: 200
{
"stdout":"{\"resources\": []}",
"code":0
}
Error: 200
{
"stdout": "{\"resources\": [ { \"status\": \"statusInvalid\", \"msg\": \"problem validating schema. Check JSON formatting: jsonschema: '/spec/template/spec/containers/0/ports/0/containerPort' does not validate with https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/master-standalone/replicationcontroller-v1.json#/properties/spec/properties/template/properties/spec/properties/containers/items/properties/ports/items/properties/containerPort/type: expected integer, but got string\"} ] } ",
"code": 1
}