Skip to content

Commit c38cf5d

Browse files
authored
Fix confusing instance sizing (etcd, kube_master) in Vagrantfile (kubernetes-sigs#9966)
1 parent 2985b12 commit c38cf5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Vagrantfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ $multi_networking ||= "False"
6161
$download_run_once ||= "True"
6262
$download_force_cache ||= "False"
6363
# The first three nodes are etcd servers
64-
$etcd_instances ||= $num_instances
64+
$etcd_instances ||= [$num_instances, 3].min
6565
# The first two nodes are kube masters
66-
$kube_master_instances ||= $num_instances == 1 ? $num_instances : ($num_instances - 1)
66+
$kube_master_instances ||= [$num_instances, 2].min
6767
# All nodes are kube nodes
6868
$kube_node_instances ||= $num_instances
6969
# The following only works when using the libvirt provider

0 commit comments

Comments
 (0)