-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
42 lines (31 loc) · 1022 Bytes
/
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
# Kubernetes Master Server
#config.vm.provision "shell", path: "base.sh"
config.vm.define "kubemaster" do |node|
node.vm.box = "debian/bookworm64"
node.vm.hostname = "kubemaster"
node.vm.network "private_network", ip: "192.168.199.10"
node.vm.provider :virtualbox do |v|
v.name = "kubemaster"
v.memory = 1024
v.cpus = 1
end
node.vm.provision "shell", path: "scripts/deploy.sh"
end
# Kubernetes Worker Node
(0..2).each do |i|
config.vm.define "worker#{i}" do |node|
node.vm.box = "debian/bookworm64"
node.vm.hostname = "worker#{i}"
node.vm.network "private_network", ip: "192.168.199.2#{i}"
node.vm.provider :virtualbox do |v|
v.name = "worker#{i}"
v.memory = 1024
v.cpus = 1
end
node.vm.provision "shell", path: "scripts/deploy-worker.sh"
end
end
end