Skip to content
Snippets Groups Projects
Commit bd064e80 authored by Paul Czarkowski's avatar Paul Czarkowski
Browse files

fix flannel's cross vm networking for vagrant

* set flannel backend type to `host-gw`
* set flannel interface to be eth1 ip
parent 8f4e879c
No related branches found
No related tags found
Loading
...@@ -90,7 +90,9 @@ Vagrant.configure("2") do |config| ...@@ -90,7 +90,9 @@ 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 "access_ip" => ip,
"flannel_interface" => ip,
"flannel_backend_type" => "host-gw"
} }
config.vm.network :private_network, ip: ip config.vm.network :private_network, ip: ip
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
src: network.json src: network.json
dest: /etc/flannel-network.json dest: /etc/flannel-network.json
backup: yes backup: yes
- name: Flannel | Create flannel pod manifest - name: Flannel | Create flannel pod manifest
template: template:
src: flannel-pod.yml src: flannel-pod.yml
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment