mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-01-31 17:19:17 -03:30
race condition in download role under vagrant
using a shared folder can cause race conditions for the download role as it tries to download files on all the nodes to the same shared path. This adds a flag to run the tasks in the download role on just one node.
This commit is contained in:
4
Vagrantfile
vendored
4
Vagrantfile
vendored
@@ -79,7 +79,8 @@ Vagrant.configure("2") do |config|
|
||||
"access_ip" => ip,
|
||||
"flannel_interface" => ip,
|
||||
"flannel_backend_type" => "host-gw",
|
||||
"local_release_dir" => "/vagrant/temp"
|
||||
"local_release_dir" => "/vagrant/temp",
|
||||
"download_run_once" => "True"
|
||||
}
|
||||
config.vm.network :private_network, ip: ip
|
||||
|
||||
@@ -96,6 +97,7 @@ Vagrant.configure("2") do |config|
|
||||
ansible.host_key_checking = false
|
||||
ansible.raw_arguments = ["--forks=#{$num_instances}"]
|
||||
ansible.host_vars = host_vars
|
||||
#ansible.tags = ['download']
|
||||
ansible.groups = {
|
||||
# The first three nodes should be etcd servers
|
||||
"etcd" => ["k8s-0[1:3]"],
|
||||
|
||||
Reference in New Issue
Block a user