mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-17 19:20:10 -03:30
Fix networks and add some debug tools
- Create two networks: public (NATed) and private (isolated) - Add some debug tools to minion nodes
This commit is contained in:
15
Vagrantfile
vendored
15
Vagrantfile
vendored
@@ -68,8 +68,21 @@ Vagrant.configure("2") do |config|
|
||||
domain.disk_bus = "virtio"
|
||||
end
|
||||
|
||||
# Networks and interfaces
|
||||
ip = "#{$private_subnet}.#{i+10}"
|
||||
test_vm.vm.network :private_network, :ip => "#{ip}"
|
||||
pub_ip = "#{$public_subnet}.#{i+10}"
|
||||
# "public" network with nat forwarding
|
||||
test_vm.vm.network :private_network,
|
||||
:ip => pub_ip,
|
||||
:model_type => "e1000",
|
||||
:libvirt__dhcp_enabled => false,
|
||||
:libvirt__forward_mode => "nat"
|
||||
# "private" isolated network
|
||||
test_vm.vm.network :private_network,
|
||||
:ip => ip,
|
||||
:model_type => "e1000",
|
||||
:libvirt__dhcp_enabled => false,
|
||||
:libvirt__forward_mode => "none"
|
||||
|
||||
# Provisioning
|
||||
config.vm.provision "file", source: "ssh", destination: "~/ssh"
|
||||
|
||||
Reference in New Issue
Block a user