Tuturial for building a Kubernetes Custom Resources (CRD) extension you can see the full tutorial in: TBD
the example contain 3 files:
- crd - define and register our CRD class
- client - client library to create and use our CRD (CRUD)
- kube-crd - main part, demonstrate how to create, use, and watch our CRD
kube-crd demonstrates the CRD usage, it shoes how to:
- Connect to the Kubernetes cluster
- Create the new CRD if it doesn't exist
- Create a new custom client
- Create a new Example object using the client library we created
- Create a controller that listens to events associated with new resources