Skip to content

Commit

Permalink
feat: custom resources k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
fadyat committed Jan 27, 2024
1 parent 6999174 commit b40eb5c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dump/kubernetes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ Some notes on Kubernetes.
- [Some stupid basics](./stupid-basics.md)
- [Deployment strategies](./deployment-types.md)
- [Volumes](./volumes.md)
- [CSI](./csi.md)
- [CRD](./crd.md)
- [Container Storage Interface (CSI)](./csi.md)
- [Custom Resource Definition (CRD)](./crd.md)
28 changes: 27 additions & 1 deletion dump/kubernetes/crd.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,28 @@
## Custom Resource

Custom resources are extensions of the Kubernetes API.

They are not available in a default Kubernetes installation
and have to be installed/created separately.

All requests are coming to the API server as usual.

### Custom Resource Definition (CRD)

CRD is a way to define a custom resource.

To work with CRD, you need to create a Custom Controller to handle
CRD requests, because the API server doesn't know how your CRD
should behave in different situations.

### Controller vs Operator

Controller works on vanilla Kubernetes objects.

Operator is a controller that works with custom resources.

### Resources

- https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/
- https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/

todo: add more info

0 comments on commit b40eb5c

Please sign in to comment.