Fix README.md to reflect real Vagrant quickstart
This commit is contained in:
parent
009a29dd80
commit
59713eff2b
37
README.md
37
README.md
|
@ -1,17 +1,26 @@
|
||||||
This repository contains resources for configuring kubernetes with calico networking plugin using Solar.
|
This repository contains resources for configuring kubernetes with calico networking plugin using Solar.
|
||||||
|
|
||||||
Setup:
|
Vagrant setup:
|
||||||
|
|
||||||
1. You need solar dev env for now.
|
1. Clone [solar](https://github.com/openstack/solar)
|
||||||
2. Put Vagrantfile_solar instead of default Vagrantfile that is included in solar.
|
2. Copy Vagrantfile_solar from this repo to solar Vagrantfile
|
||||||
3. Add fc23 vagrant box: `vagrant box add fc23 Fedora-Cloud-Base-Vagrant-23-20151030.x86_64.vagrant-libvirt.box --provider libvirt --force`
|
3. Add fc23 vagrant box:
|
||||||
4. Change boxes in `vagrant-settings.yaml` like:
|
* libvirt: `vagrant box add fc23 Fedora-Cloud-Base-Vagrant-23-20151030.x86_64.vagrant-libvirt.box --provider libvirt --force`
|
||||||
|
* virtualbox: `vagrant box add fc23 Fedora-Cloud-Base-Vagrant-23-20151030.x86_64.vagrant-virtualbox.box --provider virtualbox --force`
|
||||||
master_image: solar-master
|
4. ensure that vagrant-settings.yaml contains these values:(slave count na 2)
|
||||||
master_image_version: null
|
* slaves_count: 2
|
||||||
slaves_image: fc23
|
* master_image: solar-master
|
||||||
slaves_image_version: null
|
* master_image_version: null
|
||||||
|
* slaves_image: fc23
|
||||||
5. Login on solar-dev, link this directory as /var/lib/solar/resources/k8s (or solar repository import -l ...)
|
* slaves_image_version: null
|
||||||
6. Install python on solar-dev* (sudo dnf install python). It's required for ansible
|
5. vagrant up
|
||||||
7. `setup_k8s.py` is a naive script that adds resources. Then you can proceed with normal solar steps.
|
6. Copy, link or clone this repo to solar-dev VM into k8s folder
|
||||||
|
8. solar repo import -l k8s
|
||||||
|
9. ./setup-k8s.py
|
||||||
|
10. solar changes stage
|
||||||
|
11. solar changes process
|
||||||
|
12. solar orch run-once
|
||||||
|
13. watch solar orch report
|
||||||
|
14. (if something fails it's possible that k8s didn't start yet, let's try again) solar orch retry last
|
||||||
|
15. vagrant ssh solar-dev1
|
||||||
|
16. kubectl get pods (it works!)
|
||||||
|
|
|
@ -125,6 +125,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
||||||
config.vm.box = SLAVES_IMAGE
|
config.vm.box = SLAVES_IMAGE
|
||||||
config.vm.box_version = SLAVES_IMAGE_VERSION
|
config.vm.box_version = SLAVES_IMAGE_VERSION
|
||||||
config.vm.host_name = "solar-dev#{index}"
|
config.vm.host_name = "solar-dev#{index}"
|
||||||
|
config.vm.provision "shell", inline: 'dnf install python', privileged: true
|
||||||
|
|
||||||
if PREPROVISIONED
|
if PREPROVISIONED
|
||||||
# config.vm.provision "shell", inline: fix_six, privileged: true
|
# config.vm.provision "shell", inline: fix_six, privileged: true
|
||||||
|
|
Loading…
Reference in New Issue