Skip to content
Opsfolk

Extending Kubernetes, topic 59 of 61

Custom resources

A CustomResourceDefinition adds a new kind of object to the API, with its own schema, such as a Certificate or a PostgresCluster. kubectl, RBAC and GitOps then work with it like any built-in kind.

A custom resource on its own only stores data. It does something once a controller watches it and acts. Most tools you install, from cert-manager to Argo CD, bring their own CRDs, so learning to read them is learning how those tools are configured.

On Opsfolk

Elsewhere

Your progress