-
Notifications
You must be signed in to change notification settings - Fork 2
/
Vagrantfile
62 lines (50 loc) · 1.57 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
51
52
53
54
55
56
57
58
59
60
61
62
Vagrant.configure("2") do |config|
if (ENV['STAMPEDE_ENV'] == "kubeadm")
config.vm.provision "shell" do |s|
s.path = "scripts/install-kubeadm.sh"
s.args = "enp0s8"
end
config.vm.synced_folder ".", "/opt/stampede"
config.vm.provider "virtualbox" do |v|
v.memory = 2048
v.cpus = 2
end
config.vm.define "k8s1" do |k8s1|
k8s1.vm.hostname = "k8s1"
k8s1.vm.box = "ubuntu/bionic64"
k8s1.vm.network "private_network", type: "dhcp"
end
config.vm.define "k8s2" do |k8s2|
k8s2.vm.hostname = "k8s2"
k8s2.vm.box = "ubuntu/bionic64"
k8s2.vm.network "private_network", type: "dhcp"
end
config.vm.define "k8s3" do |k8s3|
k8s3.vm.hostname = "k8s3"
k8s3.vm.box = "ubuntu/bionic64"
k8s3.vm.network "private_network", type: "dhcp"
end
end
if (ENV['STAMPEDE_ENV'] == "microk8s")
config.vm.provision "shell" do |s|
s.path = "scripts/install-microk8s.sh"
s.args = "enp0s8"
end
config.vm.synced_folder ".", "/opt/stampede"
config.vm.define "k8s1" do |k8s1|
k8s1.vm.hostname = "k8s1"
k8s1.vm.box = "ubuntu/bionic64"
k8s1.vm.network "private_network", type: "dhcp"
end
config.vm.define "k8s2" do |k8s2|
k8s2.vm.hostname = "k8s2"
k8s2.vm.box = "ubuntu/bionic64"
k8s2.vm.network "private_network", type: "dhcp"
end
config.vm.define "k8s3" do |k8s3|
k8s3.vm.hostname = "k8s3"
k8s3.vm.box = "ubuntu/bionic64"
k8s3.vm.network "private_network", type: "dhcp"
end
end
end