Skip to content

Commit

Permalink
Added changes for 1.21.1
Browse files Browse the repository at this point in the history
  • Loading branch information
coolsvap committed May 28, 2021
1 parent 21263f5 commit 40f171d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Vagrant.configure("2") do |config|

config.hostmanager.enabled = true
config.hostmanager.manage_guest = true
# config.vm.network "public_network"


if ENV["SETUP_MASTER"]
config.vm.define ENV["MASTER_HOSTNAME"] do |subconfig|
Expand All @@ -23,7 +23,7 @@ Vagrant.configure("2") do |config|
vb.customize ["modifyvm", :id, "--memory", ENV["MASTER_MEMORY"]]
end
subconfig.vm.provision :shell do |s|
s.path = 'master.sh'
s.inline = '/bin/sh /etc/k8s-scripts/master.sh'
s.env = { KUBE_VERSION:ENV['KUBE_VERSION'], NW_PLUGIN:ENV['NW_PLUGIN'], POD_NW_CIDR:ENV['POD_NW_CIDR'] }
end
end
Expand All @@ -34,7 +34,7 @@ Vagrant.configure("2") do |config|
config.vm.define "#{NODEHOSTNAME}" do |subconfig|
subconfig.vm.hostname = "#{NODEHOSTNAME}"
subconfig.vm.network :private_network, ip: ENV["NODE_IP_NW"] + "#{i + 10}"
subconfig.vm.provision :shell, path: 'worker.sh'
subconfig.vm.provision :shell, inline: '/bin/sh /etc/k8s-scripts/worker.sh'
end
end
end
Expand Down

0 comments on commit 40f171d

Please sign in to comment.