c12s-kubespray/README.md

57 lines
1 KiB
Markdown
Raw Normal View History

2016-06-16 10:36:58 +00:00
vagrant-k8s
===========
Scripts to create libvirt lab with vagrant and prepare some stuff for `k8s` deployment with `kargo`.
Requirements
============
2016-06-16 15:50:44 +00:00
* `libvirt`
* `vagrant`
2016-06-20 14:12:18 +00:00
* `vagrant-libvirt` plugin (`vagrant plugin install vagrant-libvirt`)
2016-06-16 15:50:44 +00:00
* `$USER` should be able to connect to libvirt (test with `virsh list --all`)
2016-06-16 10:36:58 +00:00
How-to
======
2016-06-20 14:12:18 +00:00
* Change default IP pool for vagrant networks if you want:
2016-06-16 10:36:58 +00:00
```bash
export VAGRANT_POOL="10.100.0.0/16"
2016-06-20 14:12:18 +00:00
```
2016-06-27 15:57:29 +00:00
* If you want to run OpenStack CCP (Containerised Control Plane) then you need to pull CCP repos and patches:
```bash
pushd ccp
./ccp-pull.sh
popd
```
2016-06-20 14:12:18 +00:00
* Prepare the virtual lab:
```bash
2016-06-16 10:36:58 +00:00
git clone https://github.com/adidenko/vagrant-k8s
cd vagrant-k8s
vagrant up
```
* Login to master node and deploy k8s with kargo:
```bash
vagrant ssh $USER-k8s-01
# Inside your master VM run this:
sudo su -
./deploy-k8s.kargo.sh
```
2016-06-27 15:57:29 +00:00
* In order to deploy OpenStack CCP login to your master node and run this:
```bash
vagrant ssh $USER-k8s-01
# Inside your master VM run this:
sudo su -
./deploy-ccp.sh
```