Install kubernetes 1.5 on a cluster of CentOS VMs, including CNI pod networking (defaults to Flannel, also supports Weave, and looks to other plugins for future versions).
Want some more detail?
This document is... Kind of terse. Want a complete walkthrough? Check out my blog article detailing how to get it going from scratch.
||Provision a virtual machine host|
||Install and configure a k8s cluster|
||Destroys VMs on the virtual machine host|
(Table generated with markdown tables)
Step 1. Modify
./inventory/virthost.inventory to setup a virt host (skip to step 2 if you already have an inventory)
ansible-playbook -i inventory/virthost.inventory virt-host-setup.yml
Step 2. Modify
./inventory/vms.inventory Setup kube on all the hosts. If you used step 1, towards the end of the output there there will be hints on which IPs for each VM created.
ansible-playbook -i inventory/vms.inventory kube-install.yml
Want more VMs? Edit the
./vars/all.yml and add them to the list (and then later to your inventory in step 2)
Initially inspired by: