pires / kubernetes-vagrant-coreos-cluster

Kubernetes cluster (for testing purposes) made easy with Vagrant and CoreOS.
Apache License 2.0
597 stars 208 forks source link

Using local copy of k8s and coreos #250

Open pedrocassalpacheco opened 7 years ago

pedrocassalpacheco commented 7 years ago

Hi @pires,

Continue to love your project. I spend a lot of times on airplanes so I can't always re-start the cluster. Can I create the cluster from local copies of k8 and coreos?

Thanks,

Pedro

pires commented 7 years ago

Yes. Just make sure to run this before you board on a plane.

pedrocassalpacheco commented 7 years ago

Maybe I didn't ask the right question:

I see this on the logs: ==> master: Importing base box 'coreos-alpha'... and I also see this: ==> master: Setting Kubernetes version 1.6.4

Not knowing much (or anything) about vagrant, it isn't clear to me how I can use Vagrant to use a cached copy of k8 and coreos rather than get it via curl every time I need a dev cluster.

Thanks,

P

pires commented 7 years ago

the Kubernetes version, if you don't change it, is stored in artifacts as a compressed container image. CoreOS machines are stored on ~/.vagrant.d/boxes.

pedrocassalpacheco commented 7 years ago

Thanks. Even if I do vagrant destroy the files are preserved?