How to Use Kubernetes CRDs
Learn how to use CRDs in Kubernetes.
We'll cover the following...
Kubernetes CRDs
Custom resources (CRDs) are an efficient way of extending Kubernetes APIs, allowing us to make customized and declarative APIs. When we create a new CRD API, the kube-apiserver
will create a new RESTful handler for each specified version. We’ll demonstrate this shortly. The CRD can define either namespaced or cluster-scoped APIs, as specified in the field spec.scope
.
Now, let’s get started on how to use CRDs in Kubernetes.
Create a custom resource
The development environment in which we can add and modify our programs is given below. We can click the “Run” button to initialize it.
In the crd.yml
...
Access this course and 1400+ top-rated courses and projects.