Fix confusing instance sizing (etcd, kube_master) in Vagrantfile (#9966)

pull/9973/head
Xingjian Zhang 2023-04-12 07:40:31 +08:00 committed by GitHub
parent 2985b129fc
commit c38cf5dd5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

4
Vagrantfile vendored
View File

@ -61,9 +61,9 @@ $multi_networking ||= "False"
$download_run_once ||= "True" $download_run_once ||= "True"
$download_force_cache ||= "False" $download_force_cache ||= "False"
# The first three nodes are etcd servers # The first three nodes are etcd servers
$etcd_instances ||= $num_instances $etcd_instances ||= [$num_instances, 3].min
# The first two nodes are kube masters # 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 # All nodes are kube nodes
$kube_node_instances ||= $num_instances $kube_node_instances ||= $num_instances
# The following only works when using the libvirt provider # The following only works when using the libvirt provider