Browse Source
Fix and document environment variable KUBE_MASTERS (#7127 )
This variable was added as KUBE_MASTERS_MASTERS. That's probably a typo.
Remove the redundant `_MASTERS` suffix. Also, document the variable in the
help message.
pull/7134/head
Mateusz Piotrowski
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
contrib/inventory_builder/inventory.py
@ -63,7 +63,7 @@ def get_var_as_bool(name, default):
CONFIG_FILE = os . environ . get ( " CONFIG_FILE " , " ./inventory/sample/hosts.yaml " )
KUBE_MASTERS = int ( os . environ . get ( " KUBE_MASTERS_MASTERS " , 2 ) )
KUBE_MASTERS = int ( os . environ . get ( " KUBE_MASTERS " , 2 ) )
# Reconfigures cluster distribution at scale
SCALE_THRESHOLD = int ( os . environ . get ( " SCALE_THRESHOLD " , 50 ) )
MASSIVE_SCALE_THRESHOLD = int ( os . environ . get ( " MASSIVE_SCALE_THRESHOLD " , 200 ) )
@ -402,6 +402,7 @@ Configurable env vars:
DEBUG Enable debug printing . Default : True
CONFIG_FILE File to write config to Default : . / inventory / sample / hosts . yaml
HOST_PREFIX Host prefix for generated hosts . Default : node
KUBE_MASTERS Set the number of kube - masters . Default : 2
SCALE_THRESHOLD Separate ETCD role if # of nodes >= 50
MASSIVE_SCALE_THRESHOLD Separate K8s master and ETCD if # of nodes >= 200
''' # noqa