Comments (4)
I just don't know what it (controllers) does
I personally like @ericchiang's slides on this. https://talks.godoc.org/github.com/ericchiang/go-1.8-release-party/kubernetes-controllers.slide#7
To quote that, a controller is a "Fancy Kubernetes-ism for a client that talks to the API in a loop." It looks at the current state of the object and tries to bring it to the desired state (by updating, deleting, etc). Example: ReplicationController is used to ensure that correct number of replicas is running.
In case of a CRD/custom resource which does not interact with a controller, it just helps you to store and receive unstructured data.
By using a controller, you can "control" (for the lack of a better term) the custom resources. For example, depending on certain conditions, you can update the status of whatever is being managed by the controller (this is what sample-controller
does).
This custom controller is also commonly called "operator pattern". https://coreos.com/blog/introducing-operators.html
There are many talks and slides out there about this. :)
from sample-controller.
Oh!! Thank you @nikhita
Looks like I'll have usage for it. Now just need to find where in the API Server are the endpoints to create it.
I'm already using CRDs to store/read some cluster metadata of Orleans (https://github.com/OrleansContrib/Orleans.Clustering.Kubernetes). Now I'm working in another system and looks like the controller is something doable for me.
Thank you very much! Will close the issue for now.
from sample-controller.
There are clients available in other languages as well: https://github.com/kubernetes-client.
In case of yes, can someone point to the right doc so I can read more about it?
I am not entirely sure if we have docs for those (if we don't, we should make sure we have them). Maybe @tamalsaha or @enisoc know?
from sample-controller.
THanks @nikhita Those clients are to talk to the API Server. I'm OK as we have our API client hand made here. The point is that I'm not seeing any docs neither any endpoint for custom controllers.
All I find is like this sample that technically implement a sample controller. I just don't know what it (controllers) does and how to proper implement then.
I'm trying to evaluate all the extension point and see what brings value to our system.
from sample-controller.
Related Issues (20)
- Metrics HOT 5
- Execute generate-groups.sh is failure HOT 6
- SharedInformer UpdateFunc triggers while Updating status HOT 4
- Got SECURITY ERROR when downloading k8s.io/client-go HOT 6
- Move CRD from `v1beta1` to `v1` HOT 3
- README is wrong on generating code when using Go modules HOT 5
- Please give a more detail readme, there are too many pitfall HOT 8
- `./hack/update-codegen.sh` fails on pristine checkout HOT 4
- go build with error sf.IsExported undefined HOT 8
- [enhancement] Move the code generator logic to a dockerfile HOT 2
- Generate the code with update-codegen.sh in a wrong path HOT 5
- Documentation error: example CRD already exists while trying to apply manually HOT 5
- How is the Deep Copy files are generated ? HOT 5
- Why has not the NewController use a leader election like leaderelection? HOT 4
- 无法执行生成 HOT 8
- How are the files crd.yaml and crd-status-subresource. yaml generated HOT 4
- State of the docs? HOT 4
- Why does fooInformer not register a delete event handling handler?
- code is not generated to correct dir HOT 4
- code generator errors HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sample-controller.