ETExamTower
Q28Kubernetes Fundamentals

How can the Kubernetes API be extended?

← → navigate · a answer
Community votes
A
50% (2)
D
50% (2)
B
0% (0)
C
0% (0)
Discussion · 3
A 2
In summary: CRDs ======= provide a lightweight way to introduce new resource types directly into the existing Kubernetes API server. =================== API Aggregation allows for more complex and independent API extensions by integrating external API servers.
D 1
Leaning toward D, but I'd be interested to hear arguments for the others.
A 1
The correct answer is: A. Adding a CustomResourceDefinition or implementing an aggregation layer. You can extend the Kubernetes API in two main ways: CustomResourceDefinitions, CRDs API aggregation layer A CRD lets you define your own custom Kubernetes resource, such as: kind: Database kind: Backup kind: Tenant The API aggregation layer lets you add additional APIs through extension API servers. Why not the others? B — adding a version name alone does not extend the API. C — kubectl extend api is not a real command. D — kubelet parameters do not extend the Kubernetes API. Answer: A.