Custom Resources | Kubernetes - 0 views
-
Custom resources are extensions of the Kubernetes API
-
A resource is an endpoint in the Kubernetes API that stores a collection of API objects of a certain kind
- ...30 more annotations...
-
When you combine a custom resource with a custom controller, custom resources provide a true declarative API.
-
A declarative API allows you to declare or specify the desired state of your resource and tries to keep the current state of Kubernetes objects in sync with the desired state.
-
Custom controllers can work with any kind of resource, but they are especially effective when combined with custom resources.
-
The client says "do this", and then gets an operation ID back, and has to check a separate Operation object to determine completion of the request.
-
You want to build new automation that watches for updates on the new object, and then CRUD other objects, or vice versa.
-
You want the object to be an abstraction over a collection of controlled resources, or a summarization of other resources.
-
each resource in the Kubernetes API requires code that handles REST requests and manages persistent storage of objects.
-
The main API server delegates requests to you for the custom resources that you handle, making them available to all of its clients.
-
CRDs always use the same authentication, authorization, and audit logging as the built-in resources of your API server.
-
most RBAC roles will not grant access to the new resources (except the cluster-admin role or any role created with wildcard rules).