kubernetes-vagrant-coreos-cluster
kubernetes-vagrant-coreos-cluster copied to clipboard
fix empty coredns-deployment.yaml (and freeze on master: SSH auth method: private key)
- WIndows 10 Home,
- VirtualBox 5.2.8,
- Vagrant 2.0.2.
Note that:
v.customize ["modifyvm", :id, "--paravirtprovider", "minimal"] # fix freeze "vagrant up" on master: SSH auth method: private keysystem "cp #{__dir__}/coredns-deployment.yaml #{__dir__}/temp/coredns-deployment.yaml" # copying a manually compiled fileplugins/dns/coredns/deploy.sh don't work, result is empty temp/coredns-deployment.yaml
Patch:
@@ -166,6 +166,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# in CoreOS, so tell Vagrant that so it can be smarter.
v.check_guest_additions = false
v.functional_vboxsf = false
+ v.customize ["modifyvm", :id, "--paravirtprovider", "minimal"] # fox fix freeze "vagrant up" on master: SSH auth method: private key
end
config.vm.provider :parallels do |p|
p.update_guest_tools = false
@@ -270,7 +271,9 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
f.write(dnsData)
end
else if DNS_PROVIDER == "coredns"
- system "#{__dir__}/plugins/dns/coredns/deploy.sh 10.100.0.10/24 #{DNS_DOMAIN} #{__dir__}/plugins/dns/coredns/coredns.yaml.sed > #{__dir__}/temp/coredns-deployment.yaml"
+ system "cp #{__dir__}/coredns-deployment.yaml #{__dir__}/temp/coredns-deployment.yaml" # copying a manually compiled file
+ # don't work, why?? Result is empty file
+ #system "#{__dir__}/plugins/dns/coredns/deploy.sh 10.100.0.10/24 #{DNS_DOMAIN} #{__dir__}/plugins/dns/coredns/coredns.yaml.sed > #{__dir__}/temp/coredns-deployment.yaml"
end
end
end
@@ -485,6 +488,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
kHost.vm.provider :virtualbox do |vb, override|
vb.customize ["modifyvm", :id, "--uart1", "0x3F8", "4"]
vb.customize ["modifyvm", :id, "--uartmode1", serialFile]
Please, open a PR so I can test.
Actually, I don't have Windows so I can't test properly. But for as long as it doesn't break on my Mac, it should be fine.
@pires Fixes for me, PR: https://github.com/pires/kubernetes-vagrant-coreos-cluster/pull/284/files
Integrates solutions for https://github.com/pires/kubernetes-vagrant-coreos-cluster/issues/281 https://github.com/pires/kubernetes-vagrant-coreos-cluster/issues/282
I ran into theses issues and just test it. It works fine. Vagrant 2.1.1 VB 5.1.x (tested on VB 5.2 too) Windows 10