Complete the code to specify the API version for a CRD manifest.
apiVersion: [1]The correct API version for Custom Resource Definitions is apiextensions.k8s.io/v1.
Complete the code to define the kind of the custom resource in the CRD manifest.
kind: [1]The kind field for a CRD manifest must be CustomResourceDefinition.
Fix the error in the CRD spec by completing the missing field for the resource names.
spec:
names:
plural: [1]The plural field must be the lowercase plural form of the resource name, e.g., myresources.
Fill both blanks to define the scope and the kind of the custom resource in the CRD spec.
spec: scope: [1] names: kind: [2]
The scope can be Namespaced or Cluster. The kind is the singular name of the custom resource, e.g., MyResource.
Fill all three blanks to complete the CRD version definition with name, served, and storage fields.
spec: versions: - name: [1] served: [2] storage: [3]
The version name should be v1 for stable CRDs. Both served and storage fields are boolean and usually set to true for the active version.