concept

CRD schemas and versions

A CRD is cluster-scoped even when the resources it defines are namespaced. In the example the group is books.example.com, the kind is BookRequest and the plural resource name is bookrequests. The CRD name combines plural and group: bookrequests.books.example.com. The API version on the CRD itself is apiextensions.k8s.io/v1; the custom object uses books.example.com/v1. Namespaced instances have distinct identities in different namespaces, whereas a cluster-scoped custom resource has no namespace. Installing a CRD changes the cluster API for everyone; it requires separate approval.

Formal Syntax & Structure

kubernetes syntaxkubernetes
GVK: books.example.com / v1 / BookRequestGVR: books.example.com / v1 / bookrequestsGET /apis/books.example.com/v1/namespaces/book-lab/bookrequests

Working Example

Example Snippetkubernetes
GVK: books.example.com / v1 / BookRequestGVR: books.example.com / v1 / bookrequestsGET /apis/books.example.com/v1/namespaces/book-lab/bookrequests
Kubernetes Reference