Skip to content

JSON Schemas for every version of every object in every version of Kubernetes

License

Notifications You must be signed in to change notification settings

LeaseCloud/kubernetes-json-schema

This branch is 171 commits ahead of, 54 commits behind yannh/kubernetes-json-schema:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

513b0d0 · Jan 11, 2025
Feb 9, 2024
Jan 11, 2025
Jan 11, 2025
Jan 11, 2025
Jan 11, 2025
Sep 16, 2017
Jan 23, 2021
Jan 23, 2021
Jan 23, 2021
Jun 12, 2021
Jan 23, 2021
Jan 23, 2021
Jan 23, 2021
Jun 12, 2021
Apr 15, 2021
Apr 15, 2021
Apr 15, 2021
Jun 12, 2021
May 13, 2021
May 13, 2021
May 13, 2021
Jun 12, 2021
Jun 17, 2021
Jun 17, 2021
Jun 17, 2021
Aug 29, 2021
Jul 17, 2021
Jul 17, 2021
Jul 17, 2021
Aug 29, 2021
Aug 13, 2021
Aug 13, 2021
Aug 13, 2021
Aug 29, 2021
Sep 17, 2021
Sep 17, 2021
Sep 17, 2021
Sep 17, 2021
Oct 29, 2021
Oct 29, 2021
Oct 29, 2021
Oct 29, 2021
Jan 23, 2021
Jan 23, 2021
Jan 23, 2021
Jun 12, 2021
Jan 23, 2021
Jan 23, 2021
Jan 23, 2021
Jun 12, 2021
Jan 23, 2021
Jan 23, 2021
Jan 23, 2021
Jun 12, 2021
Jan 23, 2021
Jan 23, 2021
Jan 23, 2021
Jun 12, 2021
Jan 23, 2021
Jan 23, 2021
Jan 23, 2021
Jun 12, 2021
Jan 23, 2021
Jan 23, 2021
Jan 23, 2021
Jun 12, 2021
Jul 27, 2021
Jul 27, 2021
Jul 27, 2021
Aug 29, 2021
Mar 19, 2021
Mar 19, 2021
Mar 19, 2021
Jun 12, 2021
Jan 23, 2021
Jan 23, 2021
Jan 23, 2021
Jun 12, 2021
Jan 23, 2021
Jan 23, 2021
Jan 23, 2021
Jun 12, 2021
Aug 13, 2021
Aug 13, 2021
Aug 13, 2021
Aug 29, 2021
Sep 17, 2021
Sep 17, 2021
Sep 17, 2021
Sep 17, 2021
Oct 29, 2021
Oct 29, 2021
Oct 29, 2021
Oct 29, 2021
Nov 19, 2021
Nov 19, 2021
Nov 19, 2021
Nov 19, 2021
Dec 17, 2021
Dec 17, 2021
Dec 17, 2021
Dec 17, 2021
Jan 21, 2022
Jan 21, 2022
Jan 21, 2022
Jan 21, 2022
Jan 23, 2021
Jan 23, 2021
Jan 23, 2021
Jun 12, 2021
Feb 27, 2021
Feb 27, 2021
Feb 27, 2021
Jun 12, 2021
Feb 27, 2021
Feb 27, 2021
Feb 27, 2021
Jun 12, 2021
Mar 19, 2021
Mar 19, 2021
Mar 19, 2021
Jun 12, 2021
Apr 15, 2021
Apr 15, 2021
Apr 15, 2021
Jun 12, 2021
May 13, 2021
May 13, 2021
May 13, 2021
Jun 12, 2021
Jun 17, 2021
Jun 17, 2021
Jun 17, 2021
Aug 29, 2021
Jul 17, 2021
Jul 17, 2021
Jul 17, 2021
Aug 29, 2021
Apr 9, 2021
Apr 9, 2021
Apr 9, 2021
Jun 12, 2021
May 13, 2021
May 13, 2021
May 13, 2021
Jun 12, 2021
Feb 19, 2022
Feb 19, 2022
Feb 19, 2022
Feb 19, 2022
Mar 17, 2022
Mar 17, 2022
Mar 17, 2022
Mar 17, 2022
Apr 21, 2022
Apr 21, 2022
Apr 21, 2022
Apr 21, 2022
May 25, 2022
May 25, 2022
May 25, 2022
May 25, 2022
Jun 17, 2022
Jun 17, 2022
Jun 17, 2022
Jun 17, 2022
Jun 17, 2021
Jun 17, 2021
Jun 17, 2021
Aug 28, 2021
Jul 17, 2021
Jul 17, 2021
Jul 17, 2021
Aug 28, 2021
Aug 13, 2021
Aug 13, 2021
Aug 13, 2021
Aug 28, 2021
Sep 17, 2021
Sep 17, 2021
Sep 17, 2021
Sep 17, 2021
Oct 29, 2021
Oct 29, 2021
Oct 29, 2021
Oct 29, 2021
Nov 19, 2021
Nov 19, 2021
Nov 19, 2021
Nov 19, 2021
Dec 17, 2021
Dec 17, 2021
Dec 17, 2021
Dec 17, 2021
Jan 21, 2022
Jan 21, 2022
Jan 21, 2022
Jan 21, 2022
Aug 5, 2021
Aug 5, 2021
Aug 5, 2021
Aug 28, 2021
Aug 28, 2021
Aug 28, 2021
Aug 28, 2021
Aug 28, 2021
May 27, 2022
May 27, 2022
May 27, 2022
May 27, 2022
Jun 17, 2022
Jun 17, 2022
Jun 17, 2022
Jun 17, 2022
Jul 15, 2022
Jul 15, 2022
Jul 15, 2022
Jul 15, 2022
Aug 19, 2022
Aug 19, 2022
Aug 19, 2022
Aug 19, 2022
Sep 17, 2022
Sep 17, 2022
Sep 17, 2022
Sep 17, 2022
Sep 23, 2022
Sep 23, 2022
Sep 23, 2022
Sep 23, 2022
Nov 11, 2022
Nov 11, 2022
Nov 11, 2022
Nov 11, 2022
Dec 9, 2022
Dec 9, 2022
Dec 9, 2022
Dec 9, 2022
Sep 17, 2021
Sep 17, 2021
Sep 17, 2021
Sep 17, 2021
Oct 29, 2021
Oct 29, 2021
Oct 29, 2021
Oct 29, 2021
Nov 19, 2021
Nov 19, 2021
Nov 19, 2021
Nov 19, 2021
Dec 17, 2021
Dec 17, 2021
Dec 17, 2021
Dec 17, 2021
Jan 21, 2022
Jan 21, 2022
Jan 21, 2022
Jan 21, 2022
Feb 19, 2022
Feb 19, 2022
Feb 19, 2022
Feb 19, 2022
Mar 17, 2022
Mar 17, 2022
Mar 17, 2022
Mar 17, 2022
Apr 21, 2022
Apr 21, 2022
Apr 21, 2022
Apr 21, 2022
Dec 9, 2021
Dec 9, 2021
Dec 9, 2021
Dec 9, 2021
Dec 17, 2021
Dec 17, 2021
Dec 17, 2021
Dec 17, 2021
Aug 19, 2022
Aug 19, 2022
Aug 19, 2022
Aug 19, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 23, 2022
Sep 23, 2022
Sep 23, 2022
Sep 23, 2022
Oct 15, 2022
Oct 15, 2022
Oct 15, 2022
Oct 15, 2022
Nov 11, 2022
Nov 11, 2022
Nov 11, 2022
Nov 11, 2022
Dec 9, 2022
Dec 9, 2022
Dec 9, 2022
Dec 9, 2022
Jan 19, 2023
Jan 19, 2023
Jan 19, 2023
Jan 19, 2023
Mar 1, 2023
Mar 1, 2023
Mar 1, 2023
Mar 1, 2023
Jan 21, 2022
Jan 21, 2022
Jan 21, 2022
Jan 21, 2022
Jan 27, 2022
Jan 27, 2022
Jan 27, 2022
Jan 27, 2022
Feb 19, 2022
Feb 19, 2022
Feb 19, 2022
Feb 19, 2022
Mar 17, 2022
Mar 17, 2022
Mar 17, 2022
Mar 17, 2022
Apr 21, 2022
Apr 21, 2022
Apr 21, 2022
Apr 21, 2022
May 27, 2022
May 27, 2022
May 27, 2022
May 27, 2022
Jun 17, 2022
Jun 17, 2022
Jun 17, 2022
Jun 17, 2022
Jul 15, 2022
Jul 15, 2022
Jul 15, 2022
Jul 15, 2022
May 5, 2022
May 5, 2022
May 5, 2022
May 5, 2022
May 27, 2022
May 27, 2022
May 27, 2022
May 27, 2022
Jan 21, 2023
Jan 21, 2023
Jan 21, 2023
Jan 21, 2023
Mar 1, 2023
Mar 1, 2023
Mar 1, 2023
Mar 1, 2023
Mar 19, 2023
Mar 19, 2023
Mar 19, 2023
Mar 19, 2023
Apr 13, 2023
Apr 13, 2023
Apr 13, 2023
Apr 13, 2023
May 19, 2023
May 19, 2023
May 19, 2023
May 19, 2023
Jun 15, 2023
Jun 15, 2023
Jun 15, 2023
Jun 15, 2023
Jul 21, 2023
Jul 21, 2023
Jul 21, 2023
Jul 21, 2023
Aug 25, 2023
Aug 25, 2023
Aug 25, 2023
Aug 25, 2023
Jun 17, 2022
Jun 17, 2022
Jun 17, 2022
Jun 17, 2022
Jul 15, 2022
Jul 15, 2022
Jul 15, 2022
Jul 15, 2022
Aug 19, 2022
Aug 19, 2022
Aug 19, 2022
Aug 19, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 23, 2022
Sep 23, 2022
Sep 23, 2022
Sep 23, 2022
Oct 15, 2022
Oct 15, 2022
Oct 15, 2022
Oct 15, 2022
Nov 11, 2022
Nov 11, 2022
Nov 11, 2022
Nov 11, 2022
Dec 9, 2022
Dec 9, 2022
Dec 9, 2022
Dec 9, 2022
Aug 25, 2022
Aug 25, 2022
Aug 25, 2022
Aug 25, 2022
Sep 17, 2022
Sep 17, 2022
Sep 17, 2022
Sep 17, 2022
May 19, 2023
May 19, 2023
May 19, 2023
May 19, 2023
Jun 15, 2023
Jun 15, 2023
Jun 15, 2023
Jun 15, 2023
Jul 21, 2023
Jul 21, 2023
Jul 21, 2023
Jul 21, 2023
Aug 25, 2023
Aug 25, 2023
Aug 25, 2023
Aug 25, 2023
Sep 21, 2023
Sep 21, 2023
Sep 21, 2023
Sep 21, 2023
Oct 19, 2023
Oct 19, 2023
Oct 19, 2023
Oct 19, 2023
Nov 17, 2023
Nov 17, 2023
Nov 17, 2023
Nov 17, 2023
Sep 23, 2022
Sep 23, 2022
Sep 23, 2022
Sep 23, 2022
Oct 15, 2022
Oct 15, 2022
Oct 15, 2022
Oct 15, 2022
Nov 11, 2022
Nov 11, 2022
Nov 11, 2022
Nov 11, 2022
Dec 9, 2022
Dec 9, 2022
Dec 9, 2022
Dec 9, 2022
Jan 19, 2023
Jan 19, 2023
Jan 19, 2023
Jan 19, 2023
Mar 1, 2023
Mar 1, 2023
Mar 1, 2023
Mar 1, 2023
Mar 19, 2023
Mar 19, 2023
Mar 19, 2023
Mar 19, 2023
Apr 13, 2023
Apr 13, 2023
Apr 13, 2023
Apr 13, 2023
Dec 9, 2022
Dec 9, 2022
Dec 9, 2022
Dec 9, 2022
Jan 19, 2023
Jan 19, 2023
Jan 19, 2023
Jan 19, 2023
Oct 19, 2023
Oct 19, 2023
Oct 19, 2023
Oct 19, 2023
Nov 17, 2023
Nov 17, 2023
Nov 17, 2023
Nov 17, 2023
Dec 21, 2023
Dec 21, 2023
Dec 21, 2023
Dec 21, 2023
Jan 19, 2024
Jan 19, 2024
Jan 19, 2024
Jan 19, 2024
Feb 15, 2024
Feb 15, 2024
Feb 15, 2024
Feb 15, 2024
Mar 15, 2024
Mar 15, 2024
Mar 15, 2024
Mar 15, 2024
Mar 1, 2023
Mar 1, 2023
Mar 1, 2023
Mar 1, 2023
Mar 19, 2023
Mar 19, 2023
Mar 19, 2023
Mar 19, 2023
Apr 13, 2023
Apr 13, 2023
Apr 13, 2023
Apr 13, 2023
May 19, 2023
May 19, 2023
May 19, 2023
May 19, 2023
Jun 15, 2023
Jun 15, 2023
Jun 15, 2023
Jun 15, 2023
Jul 21, 2023
Jul 21, 2023
Jul 21, 2023
Jul 21, 2023
Aug 25, 2023
Aug 25, 2023
Aug 25, 2023
Aug 25, 2023
Sep 21, 2023
Sep 21, 2023
Sep 21, 2023
Sep 21, 2023
Apr 13, 2023
Apr 13, 2023
Apr 13, 2023
Apr 13, 2023
Apr 15, 2023
Apr 15, 2023
Apr 15, 2023
Apr 15, 2023
Jan 19, 2024
Jan 19, 2024
Jan 19, 2024
Jan 19, 2024
Feb 15, 2024
Feb 15, 2024
Feb 15, 2024
Feb 15, 2024
Mar 17, 2024
Mar 17, 2024
Mar 17, 2024
Mar 17, 2024
Apr 17, 2024
Apr 17, 2024
Apr 17, 2024
Apr 17, 2024
May 15, 2024
May 15, 2024
May 15, 2024
May 15, 2024
Jun 13, 2024
Jun 13, 2024
Jun 13, 2024
Jun 13, 2024
Jul 17, 2024
Jul 17, 2024
Jul 17, 2024
Jul 17, 2024
May 19, 2023
May 19, 2023
May 19, 2023
May 19, 2023
Jun 15, 2023
Jun 15, 2023
Jun 15, 2023
Jun 15, 2023
Jul 21, 2023
Jul 21, 2023
Jul 21, 2023
Jul 21, 2023
Aug 25, 2023
Aug 25, 2023
Aug 25, 2023
Aug 25, 2023
Sep 21, 2023
Sep 21, 2023
Sep 21, 2023
Sep 21, 2023
Oct 19, 2023
Oct 19, 2023
Oct 19, 2023
Oct 19, 2023
Nov 17, 2023
Nov 17, 2023
Nov 17, 2023
Nov 17, 2023
Dec 21, 2023
Dec 21, 2023
Dec 21, 2023
Dec 21, 2023
Aug 17, 2023
Aug 17, 2023
Aug 17, 2023
Aug 17, 2023
Aug 25, 2023
Aug 25, 2023
Aug 25, 2023
Aug 25, 2023
May 15, 2024
May 15, 2024
May 15, 2024
May 15, 2024
Jun 13, 2024
Jun 13, 2024
Jun 13, 2024
Jun 13, 2024
Jul 19, 2024
Jul 19, 2024
Jul 19, 2024
Jul 19, 2024
Aug 15, 2024
Aug 15, 2024
Aug 15, 2024
Aug 15, 2024
Sep 13, 2024
Sep 13, 2024
Sep 13, 2024
Sep 13, 2024
Oct 23, 2024
Oct 23, 2024
Oct 23, 2024
Oct 23, 2024
Sep 21, 2023
Sep 21, 2023
Sep 21, 2023
Sep 21, 2023
Oct 19, 2023
Oct 19, 2023
Oct 19, 2023
Oct 19, 2023
Nov 17, 2023
Nov 17, 2023
Nov 17, 2023
Nov 17, 2023
Dec 21, 2023
Dec 21, 2023
Dec 21, 2023
Dec 21, 2023
Jan 19, 2024
Jan 19, 2024
Jan 19, 2024
Jan 19, 2024
Feb 15, 2024
Feb 15, 2024
Feb 15, 2024
Feb 15, 2024
Mar 17, 2024
Mar 17, 2024
Mar 17, 2024
Mar 17, 2024
Apr 17, 2024
Apr 17, 2024
Apr 17, 2024
Apr 17, 2024
Dec 15, 2023
Dec 15, 2023
Dec 15, 2023
Dec 15, 2023
Jan 19, 2024
Jan 19, 2024
Jan 19, 2024
Jan 19, 2024
Oct 23, 2024
Oct 23, 2024
Oct 23, 2024
Oct 23, 2024
Nov 21, 2024
Nov 21, 2024
Nov 21, 2024
Nov 21, 2024
Dec 11, 2024
Dec 11, 2024
Dec 11, 2024
Dec 11, 2024
Feb 15, 2024
Feb 15, 2024
Feb 15, 2024
Feb 15, 2024
Mar 17, 2024
Mar 17, 2024
Mar 17, 2024
Mar 17, 2024
Apr 17, 2024
Apr 17, 2024
Apr 17, 2024
Apr 17, 2024
May 15, 2024
May 15, 2024
May 15, 2024
May 15, 2024
Jun 13, 2024
Jun 13, 2024
Jun 13, 2024
Jun 13, 2024
Jul 17, 2024
Jul 17, 2024
Jul 17, 2024
Jul 17, 2024
Aug 15, 2024
Aug 15, 2024
Aug 15, 2024
Aug 15, 2024
Sep 13, 2024
Sep 13, 2024
Sep 13, 2024
Sep 13, 2024
Apr 19, 2024
Apr 19, 2024
Apr 19, 2024
Apr 19, 2024
May 15, 2024
May 15, 2024
May 15, 2024
May 15, 2024
Jun 13, 2024
Jun 13, 2024
Jun 13, 2024
Jun 13, 2024
Jul 19, 2024
Jul 19, 2024
Jul 19, 2024
Jul 19, 2024
Aug 15, 2024
Aug 15, 2024
Aug 15, 2024
Aug 15, 2024
Sep 13, 2024
Sep 13, 2024
Sep 13, 2024
Sep 13, 2024
Oct 23, 2024
Oct 23, 2024
Oct 23, 2024
Oct 23, 2024
Nov 21, 2024
Nov 21, 2024
Nov 21, 2024
Nov 21, 2024
Dec 11, 2024
Dec 11, 2024
Dec 11, 2024
Dec 11, 2024
Aug 15, 2024
Aug 15, 2024
Aug 15, 2024
Aug 15, 2024
Sep 13, 2024
Sep 13, 2024
Sep 13, 2024
Sep 13, 2024
Oct 25, 2024
Oct 25, 2024
Oct 25, 2024
Oct 25, 2024
Nov 21, 2024
Nov 21, 2024
Nov 21, 2024
Nov 21, 2024
Dec 11, 2024
Dec 11, 2024
Dec 11, 2024
Dec 11, 2024
Dec 13, 2024
Dec 13, 2024
Dec 13, 2024
Dec 13, 2024
Sep 16, 2017
Apr 29, 2020
Jan 23, 2021
Jan 23, 2021
Aug 19, 2021
Sep 28, 2023
Apr 7, 2019

Repository files navigation

Kubernetes JSON Schemas

Fork

This is a fork from instrumenta/kubernetes-json-schema with updated scripts for easier maintenance, as well as schemas for all recent Kubernetes versions.

This repository is kept up-to-date automatically every day using Github Actions.

Usage

Kubeconform

This is the default schema repository used by Kubeconform, and does not need to be specified. When using multiple schema repositories, this repo can be referred to using the alias default.

# All 3 are equivalent
$ kubeconform deployment.yaml
$ kubeconform -schema-location default deployment.yaml
$ kubeconform -schema-location 'https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/{{ .NormalizedKubernetesVersion }}-standalone{{ .StrictSuffix }}/{{ .ResourceKind }}{{ .KindSuffix }}.json' deployment.yaml
Summary: 1 resource found in 1 file - Valid: 1, Invalid: 0, Errors: 0, Skipped: 0

Kubeval

$ kubeval --strict --schema-location https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/ deployment.yaml
PASS - deployment.yaml contains a valid Deployment

To run kubeval against a specific Kubernetes version, pass the -v argument

$ kubeval -v 1.19.8 -s  https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master ingress.yaml
PASS - ingress.yaml contains a valid Ingress (ingress)

Building the schemas yourself

The tooling for generating these schemas is a fork from the original openapi2jsonschema. See build.sh.

It's not Kubernetes specific and should work with other OpenAPI APIs too. This should be useful if you're using a pre-release or otherwise modified version of Kubernetes, or something like OpenShift which extends the standard APIs with additional types.

About

JSON Schemas for every version of every object in every version of Kubernetes

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published