[Container-tools] Recommendations for bootstrapping a local k8s cluster?

Lalatendu Mohanty lmohanty at redhat.com
Thu May 21 12:34:37 UTC 2015


On 05/21/2015 11:04 AM, Nick Coghlan wrote:
> Following on from my initial experimentation with helloapache, it
> quickly became clear to me that a local k8s cluster is going to be
> essential for any serious exploration of nulecule's capabilities (with
> my main aim being to see how much of
> https://beaker-project.org/docs-develop/in-a-box/ nulecule can already
> handle, and what would be needed to get it the rest of the way).
>
> James has some Oh My Vagrant instructions at
> https://ttboj.wordpress.com/2015/05/02/kubernetes-clusters-with-oh-my-vagrant/
>
> k8s upstream has some Vagrant based instructions at
> https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/getting-started-guides/vagrant.md
>
> Neither of those seem particularly appealing, so if there's a way to
> make it work I'd like something along the lines of:
>
>      # dnf install atomic vagrant vagrant-libvirt
>      # systemctl start docker.service
>      # atomic run projectatomic/bootstrap_k8s
>
> And end up with 3 local VMs running Fedora-or-CentOS Atomic Host
>
> If this sounds like a potentially viable approach to bootstrapping, I
> *am* offering to write it (Beaker-in-a-box does something a bit like
> this already, and doing it in a privileged container means I can
> potentially reuse Beaker's Ansible scripts without making it a
> requirement to install that locally).
>
> Cheers,
> Nick.
>

Nick,

You might want try the atomicapp dev  vagrant box [1]. As of now it only 
sets up single node kubernetes, but in future we will move to multi node 
k8s set-up required for atomicapp.  With the atomicapp vagrant box it 
you should be able to run helloapache atomicapp quickly.

[1] https://github.com/LalatenduMohanty/centos7-container-app-vagrant-box

Thanks,
Lala




More information about the Container-tools mailing list