-
Notifications
You must be signed in to change notification settings - Fork 11
/
Vagrantfile
executable file
·37 lines (30 loc) · 1.13 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.define "kubmaster" do |kub|
kub.vm.box = "bento/ubuntu-16.04"
kub.vm.hostname = 'kubmaster'
kub.vm.provision "docker"
kub.vm.box_url = "bento/ubuntu-16.04"
kub.vm.network :private_network, ip: "192.168.56.101"
kub.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["modifyvm", :id, "--memory", 2048]
v.customize ["modifyvm", :id, "--name", "kubmaster"]
v.customize ["modifyvm", :id, "--cpus", "2"]
end
end
config.vm.define "kubnode" do |kubnode|
kubnode.vm.box = "bento/ubuntu-16.04"
kubnode.vm.hostname = 'kubnode'
kubnode.vm.provision "docker"
kubnode.vm.box_url = "bento/ubuntu-16.04"
kubnode.vm.network :private_network, ip: "192.168.56.102"
kubnode.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["modifyvm", :id, "--memory", 2048]
v.customize ["modifyvm", :id, "--name", "kubnode"]
v.customize ["modifyvm", :id, "--cpus", "2"]
end
end
end