GithubHelp home page GithubHelp logo

Comments (7)

loewenstein avatar loewenstein commented on June 11, 2024

@jhiemer Unfortunately the kubernetes cpi is not yet prepared to be configured via cpi config. I.e. you cannot run it as multi cpi.

What is your specific use case?

from bosh-kubernetes-cpi-release.

jhiemer avatar jhiemer commented on June 11, 2024

@loewenstein my initial idea was to deploy it beside our OS CPI and try to do some bosh deployments onto our K8s Cluster.

What is missing until the CPI is deployable?

from bosh-kubernetes-cpi-release.

loewenstein avatar loewenstein commented on June 11, 2024

bosh-cpi-haskell should support getting configuration from RPC context, as per

CPI should be able to accept properties in context key and use them instead of its job properties 
see context key in https://bosh.io/docs/build-cpi.html#request

in https://github.com/cloudfoundry/bosh-notes/blob/master/proposals/multi-cpi.md

from bosh-kubernetes-cpi-release.

jhiemer avatar jhiemer commented on June 11, 2024

@loewenstein could you help me to understand your answer? I am not sure if I get it completely.

from bosh-kubernetes-cpi-release.

loewenstein avatar loewenstein commented on June 11, 2024

@jhiemer sure. The default mechanism for a CPI to get its configuration (api endpoint, credentials, ...) is a configuration file template in the Bosh release that gets rendered onto the VM that is running the director and cpi jobs.

Multi-cpi introduced a separate configuration (with api endpoint, credentials, ...) that can be uploaded to the director (with bosh update-cpi-config).
The corresponding configuration will be provided to the cpi with each RPC call (e.g. create_vm) in the context parameter. In order to support multi-cpi, the cpi has to read that additional bit of information from context and merge it with the base config provided via rendered config.

That is not yet supported by bosh-cpi-haskell which is the base cpi implementation used by the Kubernetes cpi.

Does that help?

from bosh-kubernetes-cpi-release.

jhiemer avatar jhiemer commented on June 11, 2024

@loewenstein I see. Thanks a lot for the explanation. There are no plans from your site in the near future to add this functionality?

from bosh-kubernetes-cpi-release.

loewenstein avatar loewenstein commented on June 11, 2024

from bosh-kubernetes-cpi-release.

Related Issues (6)

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.