Giter Site home page Giter Site logo

Comments (4)

nikhita avatar nikhita commented on July 17, 2024 3

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.

galvesribeiro avatar galvesribeiro commented on July 17, 2024 2

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.

nikhita avatar nikhita commented on July 17, 2024

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.

galvesribeiro avatar galvesribeiro commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.