You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Aleksandr Didenko f1e5bc81f8 Fix path to nodes list 8 years ago
ccp Huge refactoring 8 years ago
examples/kubernetes Updated readme in examples 8 years ago
playbooks Minor improvements in nodes list generation 8 years ago
vagrant-scripts Huge refactoring 8 years ago
.gitignore Fix ssh config 9 years ago
README.md Huge refactoring 8 years ago
Vagrantfile Huge refactoring 8 years ago
bootstrap-master.sh Fix cwd 8 years ago
custom.yaml Fixes and improvements 9 years ago
deploy-ccp.sh Added CCP deployment scripts 8 years ago
deploy-k8s.kargo.sh Fix path to nodes list 8 years ago

README.md

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"
  • 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:
git clone https://github.com/adidenko/vagrant-k8s
cd vagrant-k8s
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