0
0
Kubernetesdevops~5 mins

Custom Resource Definitions (CRDs) in Kubernetes - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a Custom Resource Definition (CRD) in Kubernetes?
A CRD is a way to add your own custom objects to Kubernetes. It lets you define new resource types beyond the built-in ones, so you can manage your own data with Kubernetes tools.
Click to reveal answer
beginner
How do you create a new custom resource type in Kubernetes?
You create a CRD YAML file that defines the new resource's name, version, and schema, then apply it with kubectl. This tells Kubernetes about your new resource type.
Click to reveal answer
beginner
What command applies a CRD YAML file to the Kubernetes cluster?
kubectl apply -f applies the CRD to the cluster, registering the new custom resource type.
Click to reveal answer
intermediate
Why use CRDs instead of ConfigMaps or Secrets for custom data?
CRDs let you create structured, typed resources with validation and versioning. ConfigMaps and Secrets are simpler key-value stores without schema or lifecycle management.
Click to reveal answer
intermediate
What is the role of a controller with CRDs?
A controller watches custom resources and acts on changes. It helps automate tasks like creating pods or updating status based on the custom resource's state.
Click to reveal answer
What does a Custom Resource Definition (CRD) allow you to do in Kubernetes?
AUpgrade Kubernetes versions
BDefine new resource types
CDelete nodes automatically
DMonitor cluster health
Which command is used to apply a CRD YAML file to a Kubernetes cluster?
Akubectl apply -f <file>
Bkubectl create crd
Ckubectl get crd
Dkubectl delete crd
What is a key benefit of using CRDs over ConfigMaps for custom data?
ACRDs support schema validation
BConfigMaps are encrypted by default
CCRDs cannot be versioned
DConfigMaps allow custom resource types
What component typically watches CRDs to automate actions?
AScheduler
BAPI Server
CController
DKubelet
Which of these is NOT true about CRDs?
AThey extend Kubernetes with new resource types
BThey support versioning and validation
CThey can be managed with kubectl
DThey require writing Go code to use
Explain what a Custom Resource Definition (CRD) is and why it is useful in Kubernetes.
Think about how Kubernetes can manage things beyond built-in resources.
You got /4 concepts.
    Describe the steps to create and use a new custom resource in Kubernetes using a CRD.
    Focus on YAML definition, applying it, and using the new resource.
    You got /4 concepts.