From the course: Certified Kubernetes Application Developer (CKAD) Cert Prep

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Extending the API

Extending the API

- Another important skill is API extension. So the Kubernetes API can be extended in different ways. You can use the CustomResourceDefinition API resource, you can use custom controllers and you can use API aggregation. Let's zoom into these. The CustomResourceDefinition or CRD is an API resource that makes adding your own API resources easy. It's awesome because it really makes it easy to add anything to the API. CRDs are integrated with the Kubernetes API server and they follow the API server update mechanism. And using CRD is very common because it provides an easy way to add resources without any need to program them. And for that reason, CRDs have probably become de facto standard for adding resources to the API in recent releases of Kubernetes. You can also run a custom controller. Now, what is a controller? Well, that's a process that watches for changes in the Kubernetes API and when changes occur, the controller takes action to ensure that the desired state of the resources…

Contents