Giter Site home page Giter Site logo

Comments (4)

barry8schneider avatar barry8schneider commented on July 17, 2024

I found a few examples

Kubeless - use a Custom Resource Definition to be able to create functions as custom kubernetes resources. Then run an in-cluster controller that watches these custom resource - could this technique be incorporated into the sample?

kubewatch - A kubewatch container will be created along with kubectl sidecar container in order to reach the API server.

from sample-controller.

nikhita avatar nikhita commented on July 17, 2024

Then run an in-cluster controller that watches these custom resource - could this technique be incorporated into the sample?

Not sure I follow, can you elaborate on how the in-cluster controller works in this case?

/cc @sttts @munnerz

from sample-controller.

sttts avatar sttts commented on July 17, 2024

The example uses BuildConfigFromFlags which in turn calls InClusterConfig (https://github.com/kubernetes/client-go/blob/master/tools/clientcmd/client_config.go#L553). So it should work in a pod. If it doesn't, it's a bug.

from sample-controller.

radu-munteanu avatar radu-munteanu commented on July 17, 2024

All controllers can be run outside K8s or inside, as an unique pod deployed on master. They use API calls to communicate with the cluster. For testing purposes, it's just easier to use it locally, rather than package it into a container and the run it as a pod.

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.