Skip to content

Commit

Permalink
Fix confusing instance sizing (etcd, kube_master) in Vagrantfile (#9966)
Browse files Browse the repository at this point in the history
  • Loading branch information
THUzxj authored Apr 11, 2023
1 parent 2985b12 commit c38cf5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ $multi_networking ||= "False"
$download_run_once ||= "True"
$download_force_cache ||= "False"
# The first three nodes are etcd servers
$etcd_instances ||= $num_instances
$etcd_instances ||= [$num_instances, 3].min
# The first two nodes are kube masters
$kube_master_instances ||= $num_instances == 1 ? $num_instances : ($num_instances - 1)
$kube_master_instances ||= [$num_instances, 2].min
# All nodes are kube nodes
$kube_node_instances ||= $num_instances
# The following only works when using the libvirt provider
Expand Down

0 comments on commit c38cf5d

Please sign in to comment.