Skip to content

mulcahys/kubernetes-vagrant-ansible

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Original: http://jeremievallee.com/2017/01/31/kubernetes-with-vagrant-ansible-kubeadm/

kubernetes-vagrant-ansible

Install Kubernetes on Vagrant (libvirt) using Ansible.

Requirements

  • Vagrant (with libvirt and proxyconf plugins)
  • libvirt and dependencies
  • Ansible

Steps

Create virtualenv for ansible

virtualenv ~/venv/multikube
. ~/venv/multikube/bin/activate
pip install ansible

Install Vagrant and plugins

sudo apt install

install latest vagrant from https://www.vagrantup.com/downloads.html (2.0.1) install vagrant-libvirt plugin

sudo apt install libxslt-dev libxml2-dev libvirt-dev zlib1g-dev ruby-dev

vagrant plugin install vagrant-libvirt

vagrant plugin install vagrant-proxyconf

First, create the machines.

vagrant up --provider=libvirt

Then, provision the machines.

sudo apt install sshpass

ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -vv playbook.yml -i inventory -e @vars.yml

Troubleshooting

journalctl -xefu kubelet

About

Install Kubernetes on Vagrant using Ansible.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published