[Container-tools] Recommendations for bootstrapping a local k8s cluster?
James Shubin
purpleidea at redhat.com
Mon May 25 16:03:10 UTC 2015
On Mon, 2015-05-25 at 08:05 -0400, Will Thames wrote:
>
> ----- Original Message -----
> > From: "Nick Coghlan" <ncoghlan at gmail.com>
> > To: "James Shubin" <purpleidea at redhat.com>
> > Cc: "container-tools" <container-tools at redhat.com>
> > Sent: Monday, May 25, 2015 5:59:49 PM
> > Subject: Re: [Container-tools] Recommendations for bootstrapping a local k8s cluster?
> >
> > On 25 May 2015 at 16:52, Nick Coghlan <ncoghlan at gmail.com> wrote:
> > > The all-inclusive vagrant+ansible bootstrap image ended up weighing in
> > > at almost 700 MB, so I'm going to go with the "impractically large"
> > > assessment here, and switch approaches to just installing ansible
> > > locally and using OMV with the ansible based bootstrap.
> >
> > Starting to work on this, I believe this is the sequence of
> > instructions I'd like to have work for ansible+vagrant based
> > bootstrapping of a local Kubernetes instance (currently on an F21
> > machine, hence yum rather than dnf):
> >
> > $ sudo yum install git ansible vagrant vagrant-libvirt
> > $ git clone https://github.com/purpleidea/oh-my-vagrant.git
> > $ cd oh-my-vagrant/vagrant
> > $ cp ../examples/kubernetes-ansible.yaml omv.yaml
> > $ vagrant up
>
> In the first line you install ansible.
>
> Lines 2-5 could be replaced with
> ansible-pull -U https://github.com/somegroup/somerepo playbook.yml
Oh-My-Vagrant automatically pulls down ansible scripts and other things
from git. Have a look at this video and/or blog post:
https://ttboj.wordpress.com/2015/04/08/sharing-dev-environments-with-oh-my-vagrant/
There's also a vansible (vagrant ansible) command to help you live your
dev life better :)
https://github.com/purpleidea/oh-my-vagrant/blob/master/extras/vagrant.bashrc#L252
>
> given a suitable playbook.yml file in somerepo.
>
> If you haven't seen the Ansible Vagrant docs, it's worth taking a look,
> depending upon what you want to achieve
>
> http://docs.ansible.com/guide_vagrant.html
>
> or the Vagrant Ansible docs
>
> http://docs.vagrantup.com/v2/provisioning/ansible.html
>
> Will
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/container-tools/attachments/20150525/639487a4/attachment.sig>
More information about the Container-tools
mailing list