-
Notifications
You must be signed in to change notification settings - Fork 2
/
Vagrantfile
52 lines (43 loc) · 1.54 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
41
42
43
44
45
46
47
48
49
50
Vagrant.configure("2") do |config|
config.vm.define "k8smaster" do |k8smaster|
config.ssh.insert_key = false
k8smaster.vm.box = "bento/ubuntu-22.04"
k8smaster.vm.network "private_network", ip: "192.168.50.2"
k8smaster.vm.hostname = "k8s-master"
k8smaster.vm.provider "virtualbox" do |vb|
vb.memory = "2048"
vb.name = "k8smaster"
vb.cpus = "2"
end
end
config.vm.define "k8snode1" do |k8snode1|
config.ssh.insert_key = false
k8snode1.vm.box = "bento/ubuntu-22.04"
k8snode1.vm.network "private_network", ip: "192.168.50.3"
k8snode1.vm.hostname = "k8s-node1"
k8snode1.vm.provider "virtualbox" do |vb|
vb.name = "k8snode1"
vb.memory = "2048"
end
end
config.vm.define "k8snode2" do |k8snode2|
config.ssh.insert_key = false
k8snode2.vm.box = "bento/ubuntu-22.04"
k8snode2.vm.network "private_network", ip: "192.168.50.4"
k8snode2.vm.hostname = "k8s-node2"
k8snode2.vm.provider "virtualbox" do |vb|
vb.name = "k8snode2"
vb.memory = "2048"
end
end
config.vm.define "devbuild" do |devbuild|
config.ssh.insert_key = false
devbuild.vm.box = "bento/ubuntu-22.04"
devbuild.vm.network "private_network", ip: "192.168.20.1"
devbuild.vm.hostname = "devbuild"
devbuild.vm.provider "virtualbox" do |vb|
vb.name = "devbuild"
vb.memory = "2048"
end
end
end