Deploy a Production Ready Kubernetes Cluster on bare metal or raw VMs - This is a clone of https://github.com/kubernetes-sigs/kubespray.git with a kitten twist.
Go to file
2016-06-30 16:12:26 +02:00
ccp Hack all problem images and put resolv.conf there 2016-06-30 16:12:26 +02:00
examples/kubernetes Updated readme in examples 2016-06-29 12:48:21 +02:00
playbooks Hack all problem images and put resolv.conf there 2016-06-30 16:12:26 +02:00
vagrant-scripts Remove kpm from provisioning, kargo installs it 2016-06-30 15:46:02 +02:00
.gitignore Fix ssh config 2016-06-16 14:28:29 +02:00
bootstrap-master.sh Fix cwd 2016-06-30 15:31:30 +02:00
custom.yaml Fixes and improvements 2016-06-20 11:06:01 +02:00
deploy-ccp.sh Another fix in path for inventory 2016-06-30 15:56:57 +02:00
deploy-k8s.kargo.sh Fix paths to kargo 2016-06-30 15:35:00 +02:00
README.md Fix readme 2016-06-30 15:47:28 +02:00
Vagrantfile Huge refactoring 2016-06-30 15:22:39 +02:00

vagrant-k8s

Scripts to create libvirt lab with vagrant and prepare some stuff for k8s deployment with kargo.

Requirements

  • libvirt
  • vagrant
  • vagrant-libvirt plugin (vagrant plugin install vagrant-libvirt)
  • $USER should be able to connect to libvirt (test with virsh list --all)

How-to

Vargant lab preparation

  • Change default IP pool for vagrant networks if you want:
export VAGRANT_POOL="10.100.0.0/16"
  • Clone this repo
git clone https://github.com/adidenko/vagrant-k8s
cd vagrant-k8s
  • If you want to run OpenStack CCP (Containerised Control Plane) then you need to pull CCP repos and patches:
pushd ccp
./ccp-pull.sh
popd
  • Prepare the virtual lab:
vagrant up

Deployment on a lab

  • Login to master node and sudo to root:
vagrant ssh $USER-k8s-01
sudo su -
  • Clone this repo
git clone https://github.com/adidenko/vagrant-k8s ~/mcp
  • Install required software and pull needed repos (modify script if you're not running it on Vagrant lab, you'll need to create nodes list manually and clone microservices and microservices-repos repositories, see ccp-pull.sh for details)
cd ~/mcp
./bootstrap-master.sh
  • Deploy k8s using kargo playbooks
cd ~/mcp
./deploy-k8s.kargo.sh
  • Deploy OpenStack CCP:
cd ~/mcp
./deploy-ccp.sh