mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-15 10:10:03 -03:30
fix flannel's cross vm networking for vagrant
* set flannel backend type to `host-gw` * set flannel interface to be eth1 ip
This commit is contained in:
4
Vagrantfile
vendored
4
Vagrantfile
vendored
@@ -90,7 +90,9 @@ Vagrant.configure("2") do |config|
|
||||
ip = "#{$subnet}.#{i+100}"
|
||||
host_vars[vm_name] = {
|
||||
"ip" => ip,
|
||||
"access_ip" => ip
|
||||
"access_ip" => ip,
|
||||
"flannel_interface" => ip,
|
||||
"flannel_backend_type" => "host-gw"
|
||||
}
|
||||
config.vm.network :private_network, ip: ip
|
||||
|
||||
|
||||
Reference in New Issue
Block a user