What if you could teach Kubernetes to understand and manage anything you want, just like its built-in parts?
Why Custom resources concept in Kubernetes? - Purpose & Use Cases
Imagine you want to manage a new type of application setting in Kubernetes that is not supported by default. You try to track these settings outside Kubernetes, using spreadsheets or separate scripts.
This manual tracking is slow and error-prone. You must constantly update external files and run scripts, risking mismatches and forgotten changes. It's hard to keep everything in sync with your cluster state.
Custom resources let you extend Kubernetes with your own resource types. You can define and manage your new settings directly inside Kubernetes, just like built-in resources, making everything consistent and automated.
Track settings in a spreadsheet and run separate scripts to apply changes.
kubectl apply -f my-custom-resource.yaml
It enables you to manage any kind of configuration or application state natively within Kubernetes, making automation and scaling much easier.
A team creates a custom resource to manage database backup schedules, so they can control backups declaratively and monitor them with Kubernetes tools.
Manual tracking outside Kubernetes is slow and risky.
Custom resources let you add new resource types inside Kubernetes.
This makes management consistent, automated, and scalable.