KCNA · Question #138
How can you extend the Kubernetes API?
The correct answer is A. Adding a CustomResourceDefinition or implementing an aggregation layer. The two official mechanisms to extend the Kubernetes API are CustomResourceDefinitions (CRDs) and the API Aggregation Layer (A). CRDs let you define new resource types stored in etcd without writing custom servers. The aggregation layer allows running extension API servers…
Question
How can you extend the Kubernetes API?
Options
- AAdding a CustomResourceDefinition or implementing an aggregation layer.
- BAdding a new version of a resource, for instance v4beta3.
- CWith the command kubectl extend api, logged in as an administrator.
- DAdding the desired API object as a kubelet parameter
How the community answered
(29 responses)- A93% (27)
- C3% (1)
- D3% (1)
Explanation
The two official mechanisms to extend the Kubernetes API are CustomResourceDefinitions (CRDs) and the API Aggregation Layer (A). CRDs let you define new resource types stored in etcd without writing custom servers. The aggregation layer allows running extension API servers alongside the main API server. Option B is wrong - adding a new API version like v4beta3 modifies existing resources, not extends the API. Options C and D describe non-existent kubectl commands and kubelet parameters.
Topics
Community Discussion
No community discussion yet for this question.