-
Notifications
You must be signed in to change notification settings - Fork 10
/
Vagrantfile
40 lines (39 loc) · 1.38 KB
/
Vagrantfile
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
37
38
39
40
Vagrant.configure("2") do |config|
# This will be applied to every vagrant file that comes after it
config.vm.box = "opensuse/Leap-15.2.x86_64"
# K8s Control Plane
## Master Node
config.vm.define "master" do |k8s_master|
k8s_master.vm.provision "shell", path: "node_script.sh"
k8s_master.vm.network "private_network", ip: "172.16.129.21"
k8s_master.vm.hostname = "master"
k8s_master.vm.provider "virtualbox" do |v|
v.customize ["modifyvm", :id, "--audio", "none"]
v.memory = 4024
v.cpus = 2
end
end
# K8s Data Plane
## Worker Node 1
config.vm.define "worker1" do |k8s_worker|
k8s_worker.vm.provision "shell", path: "node_script.sh"
k8s_worker.vm.network "private_network", ip: "172.16.129.22"
k8s_worker.vm.hostname = "worker1"
k8s_worker.vm.provider "virtualbox" do |v|
v.customize ["modifyvm", :id, "--audio", "none"]
v.memory = 4024
v.cpus = 2
end
end
## Worker Node 2
config.vm.define "worker2" do |k8s_worker|
k8s_worker.vm.provision "shell", path: "node_script.sh"
k8s_worker.vm.network "private_network", ip: "172.16.129.23"
k8s_worker.vm.hostname = "worker2"
k8s_worker.vm.provider "virtualbox" do |v|
v.customize ["modifyvm", :id, "--audio", "none"]
v.memory = 4024
v.cpus = 2
end
end
end