liveBook · Manning

Custom resource definition

As explained in Kubernetes for Developers

A custom resource definition is a Kubernetes API extension that introduces a new resource type with a user-defined schema.

A custom resource definition extends Kubernetes with a new resource type for application-specific business logic or constructs that built-in Kubernetes resources do not support. section 1.2.2

Use a custom resource definition when:

  • Kubernetes lacks a resource model for a particular business requirement. section 1.2.2
  • A Kubernetes-style API would provide a clearer operational interface for that requirement. section 1.2.2

A practical boundary

Stateless and stateful web applications generally do not need custom resource definitions; they become useful when deployment requires additional business logic or a new Kubernetes-style construct. section 1.2.2

How Kubernetes for Developers covers it

How deep it goes
Explains the purpose of custom resource definitions and operator patterns but stops short of implementation details.
Examples
Uses unsupported business logic and new constructs as motivating cases, contrasting them with ordinary web application deployment.
What you can do after
Build it from scratch by creating a Kubernetes-style API for requirements that built-in Kubernetes resources do not support.
How it connects
Connects custom resource definitions with Kubernetes APIs, Kubernetes-style APIs, and operator patterns.

Also explained in

Compare how 7 books explain custom resource definition →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Kubernetes for Developers. The section links point to the parts of the book it draws on.