Ensure vagrant uses flannel
The Vagrantfile is setup to use flannel. The default network was changed to Calico (#1031). However, the Vagrantfile was not updated to reflect this. Ensuring the Vagrantfile remains functional on master, until someone decides to make it work with Calico.
This commit is contained in:
parent
015f1305eb
commit
f2ae2a0294
1 changed files with 8 additions and 6 deletions
14
Vagrantfile
vendored
14
Vagrantfile
vendored
|
@ -94,12 +94,14 @@ Vagrant.configure("2") do |config|
|
||||||
|
|
||||||
ip = "#{$subnet}.#{i+100}"
|
ip = "#{$subnet}.#{i+100}"
|
||||||
host_vars[vm_name] = {
|
host_vars[vm_name] = {
|
||||||
"ip" => ip,
|
"ip": ip,
|
||||||
#"access_ip" => ip,
|
"flannel_interface": ip,
|
||||||
"flannel_interface" => ip,
|
"flannel_backend_type": "host-gw",
|
||||||
"flannel_backend_type" => "host-gw",
|
"local_release_dir": "/vagrant/temp",
|
||||||
"local_release_dir" => "/vagrant/temp",
|
"download_run_once": "False",
|
||||||
"download_run_once" => "False"
|
# Override the default 'calico' with flannel.
|
||||||
|
# inventory/group_vars/k8s-cluster.yml
|
||||||
|
"kube_network_plugin": "flannel",
|
||||||
}
|
}
|
||||||
config.vm.network :private_network, ip: ip
|
config.vm.network :private_network, ip: ip
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue