Kubernetes · Resource
CustomResourceDefinition
A CustomResourceDefinition (CRD) adds a new resource type to the Kubernetes API. Kubernetes serves and stores objects of that type, and a custom controller can reconcile them into a declarative API.
Last updated
- Since
- v1.32 for selectable custom-resource fields
Syntax
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
spec:
group: <group>
scope: Namespaced | Cluster
names: { plural, singular, kind }
versions: [{ name, served, storage, schema }]In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
Custom resourcesCustom controllersAPI server aggregationOpenAPI v3.0 validation schemasField selectorsFinalizers