Skip to content

Commit

Permalink
Merge pull request opsnull#324 from twocucao/enable-auto-correct-port…
Browse files Browse the repository at this point in the history
…-collision-vagrant-up

enable-auto-correct-port-collision-vagrant-up
  • Loading branch information
opsnull authored Oct 18, 2018
2 parents 74af560 + a766366 commit 15fa6ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vagrant/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ Vagrant.configure("2") do |config|
config.vm.define "kube-node#{id}" do |node|
node.vm.hostname = "kube-node#{id}"
node.vm.network :private_network, ip: "10.64.3.#{id}", auto_config: true
config.vm.network "forwarded_port", guest: 8080, host: 8080 # kube-apiserver
config.vm.network "forwarded_port", guest: 8086, host: 8086 # kubectl proxy
config.vm.network "forwarded_port", guest: 443, host: 4443 # harbor
config.vm.network "forwarded_port", guest: 8080, host: 8080, auto_correct: true # kube-apiserver
config.vm.network "forwarded_port", guest: 8086, host: 8086, auto_correct: true # kubectl proxy
config.vm.network "forwarded_port", guest: 443, host: 4443, auto_correct: true # harbor
node.vm.provider :virtualbox do |vb, override|
vb.name = "kube-node#{id}"
vb.gui = false
Expand Down

0 comments on commit 15fa6ba

Please sign in to comment.