-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile.k8_worker
36 lines (33 loc) · 1.78 KB
/
Vagrantfile.k8_worker
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.define :target_vm_k8worker do |target_vm_k8worker|
target_vm_k8worker.vm.box = "generic/ubuntu1604"
target_vm_k8worker.vm.network :forwarded_port, host: 6000, guest: 30129, host_ip: "*"
target_vm_k8worker.vm.network :forwarded_port, host: 10250, guest: 10250, host_ip: "*"
target_vm_k8worker.vm.network :forwarded_port, host: 10255, guest: 10255, host_ip: "*"
target_vm_k8worker.vm.network :forwarded_port, host: 2379, guest: 2379, host_ip: "*"
target_vm_k8worker.vm.network :forwarded_port, host: 2380, guest: 2380, host_ip: "*"
target_vm_k8worker.vm.network :forwarded_port, host: 6783, guest: 6783, host_ip: "*"
target_vm_k8worker.vm.network :forwarded_port, host: 6784, guest: 6784, host_ip: "*"
target_vm_k8worker.vm.network :private_network,
:libvirt__network_name => "default"
end
config.vm.provision :shell, path: "bootstrap.sh"
# target_vm_k8worker.vm.network :public_network, :dev => "eno1"
config.vm.provider :libvirt do |libvirt|
libvirt.cpus = 4
libvirt.memory = 8192
end
config.vm.define :adv_vm_k8worker do |adv_vm_k8worker|
adv_vm_k8worker.vm.box = "generic/ubuntu1604"
adv_vm_k8worker.vm.network :forwarded_port, host: 10000, guest: 10250, host_ip: "*"
adv_vm_k8worker.vm.network :forwarded_port, host: 10001, guest: 10255, host_ip: "*"
adv_vm_k8worker.vm.network :forwarded_port, host: 10002, guest: 2379, host_ip: "*"
adv_vm_k8worker.vm.network :forwarded_port, host: 10003, guest: 2380, host_ip: "*"
adv_vm_k8worker.vm.network :private_network,
:libvirt__network_name => "default"
end
end