Kubernetes Label and Annotation Validator
Validate Kubernetes labels and annotations in local YAML or JSON. Inspect qualified key syntax and total UTF-8 annotation size, then download checked metadata.
Check Kubernetes Metadata Keys and Values
Kubernetes Label and Annotation Validator: how to use it
- Paste one Kubernetes YAML or JSON object with metadata.labels or metadata.annotations. You can also paste the two mappings directly.
- Select Check metadata. Use the field and line number to fix invalid keys or values. Quote values that YAML would otherwise read as a number, Boolean, date or null.
- Review the total annotation bytes and any portability notices. Download kubernetes-metadata.json when the syntax passes.
Limits and notes
Checks one document of up to 400,000 characters using YAML 1.1 scalar semantics and explicit mappings. Supports the 256 KiB aggregate annotation limit. The JSON export contains only the checked label and annotation maps. Resource schema, admission policies and cluster state require separate evidence.
How your privacy works →Kubernetes Label and Annotation Validator: common questions
Can a Kubernetes label have an empty value?
Yes. Write an explicit empty string as "". A bare key with no written value is parsed as null.
Can an annotation contain spaces or a JSON object?
An annotation value is a string. You can put spaces, JSON text or multiple lines inside a quoted or block string.
How is the annotation byte total calculated?
It sums the UTF-8 byte lengths of all annotation keys and values. YAML formatting, quote marks and indentation outside the values add no bytes to this total.