GithubHelp home page GithubHelp logo

Comments (5)

janroos avatar janroos commented on August 16, 2024 2

To persist variables, I am using it like this:
echo NUM_INSTANCES=1 MASTER_MEM=1024 MASTER_CPUS=2 NODE_MEM=2048 NODE_CPUS=2 vagrant "$@" > v
chmod +x v
./v up

from kubernetes-vagrant-coreos-cluster.

pires avatar pires commented on August 16, 2024

This happens because when one uses environment variable NUM_INSTANCES to set the number of minions to spawn, it actually doesn't get persisted anywhere where Vagrantfile can read it and falls back to the default 2.

from kubernetes-vagrant-coreos-cluster.

pires avatar pires commented on August 16, 2024

Please do note that if you were using non default settings to startup your
cluster you must also use those exact settings when invoking
vagrant {up,ssh,destroy} to communicate with any of the nodes in the cluster as otherwise
things may not behave as you'd expect.

So, if you ran NUM_INSTANCES=4 vagrant up you'll need to NUM_INSTANCES=4 vagrant status in order to show all the nodes. This is not optimal, but right now it's what works.

from kubernetes-vagrant-coreos-cluster.

pires avatar pires commented on August 16, 2024

This same issue applies for all environment variables that we set but are not reused during cluster lifecycle. We should find a way to write-and-read this info from a persistent media, i.e. a file.

from kubernetes-vagrant-coreos-cluster.

pires avatar pires commented on August 16, 2024

Interesting @janroos. Thanks for sharing. But I would like something like a trigger on the Vagrantfile that would read values from a file. Such values would only be preceded by environment variables previously set.

from kubernetes-vagrant-coreos-cluster.

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.