In Kubernetes, what is the main reason to create a Custom Resource?
Think about how Kubernetes can be customized to manage new kinds of objects.
Custom Resources allow users to add new types of objects to Kubernetes, enabling management of resources not originally included.
What is the output of the command kubectl get crd in a Kubernetes cluster with two Custom Resource Definitions named widgets.example.com and gadgets.example.com?
kubectl get crdThink about what kubectl get crd lists and the typical columns shown.
The command lists all Custom Resource Definitions with their names and creation timestamps.
Which YAML snippet correctly defines a Custom Resource Definition (CRD) for a resource named widgets in group example.com with version v1?
Check the API version and the structure of the spec section for CRDs.
Option D uses the correct API version apiextensions.k8s.io/v1 and properly defines the versions list with served and storage fields.
Arrange the steps in the correct order to create and use a Custom Resource in Kubernetes.
Think about registering the CRD before creating resources and verifying registration before usage.
First define and apply the CRD, then verify it is registered, next create resource instances, and finally manage them.
You applied a Custom Resource YAML manifest but got the error: error: unable to recognize "widget.yaml": no matches for kind "Widget" in version "example.com/v1". What is the most likely cause?
Consider whether the cluster knows about the new resource kind before you create instances.
This error usually means the CRD is missing or not yet active, so Kubernetes does not recognize the resource kind.