Posts

Kubernetes supports multiple objects at both namespace and cluster-level scopes. However, there are scenarios where you may want to define your own custom behavior or resources. That’s where Kubernetes Custom Resources come into play. Custom Resources let you define and manage new object types beyond the standard ones like Pods , Deployments , and Services . In this guide, we’ll create and manage a custom resource named CustomSecret . This will automatically create, update, or delete a Kubernetes Secret based on user-defined values.  Why Use CRDs? Custom Resource Definitions (CRDs) enable: Abstraction : Encapsulate application-specific logic into reusable resources. Consistency : Ensure standardized configuration and management. Automation : With custom controllers, automate how Kubernetes responds to changes.  Example Overview We will define a resource called CustomSecret , which includes: secret-name : The name for the resulting Kubernetes Secret. my-own-prop...