mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-09 02:17:39 -02:30
Minor update in README
This commit is contained in:
@@ -8,16 +8,21 @@ Requirements
|
|||||||
|
|
||||||
* `libvirt`
|
* `libvirt`
|
||||||
* `vagrant`
|
* `vagrant`
|
||||||
* `vagrant-libvirt` plugin
|
* `vagrant-libvirt` plugin (`vagrant plugin install vagrant-libvirt`)
|
||||||
* `$USER` should be able to connect to libvirt (test with `virsh list --all`)
|
* `$USER` should be able to connect to libvirt (test with `virsh list --all`)
|
||||||
|
|
||||||
How-to
|
How-to
|
||||||
======
|
======
|
||||||
|
|
||||||
* Prepare the virtual lab:
|
* Change default IP pool for vagrant networks if you want:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
export VAGRANT_POOL="10.100.0.0/16"
|
export VAGRANT_POOL="10.100.0.0/16"
|
||||||
|
```
|
||||||
|
|
||||||
|
* Prepare the virtual lab:
|
||||||
|
|
||||||
|
```bash
|
||||||
git clone https://github.com/adidenko/vagrant-k8s
|
git clone https://github.com/adidenko/vagrant-k8s
|
||||||
cd vagrant-k8s
|
cd vagrant-k8s
|
||||||
vagrant up
|
vagrant up
|
||||||
|
|||||||
3
Vagrantfile
vendored
3
Vagrantfile
vendored
@@ -1,8 +1,9 @@
|
|||||||
# -*- mode: ruby -*-
|
# -*- mode: ruby -*-
|
||||||
# vi: set ft=ruby :
|
# vi: set ft=ruby :
|
||||||
|
|
||||||
|
pool = ENV["VAGRANT_POOL"] || "10.250.0.0/16"
|
||||||
|
|
||||||
ENV["VAGRANT_DEFAULT_PROVIDER"] = "libvirt"
|
ENV["VAGRANT_DEFAULT_PROVIDER"] = "libvirt"
|
||||||
pool = ENV["VAGRANT_POOL"] || "10.210.0.0/16"
|
|
||||||
prefix = pool.gsub(/\.\d+\.\d+\/16$/, "")
|
prefix = pool.gsub(/\.\d+\.\d+\/16$/, "")
|
||||||
|
|
||||||
$num_instances = 7
|
$num_instances = 7
|
||||||
|
|||||||
Reference in New Issue
Block a user