mirror of https://github.com/k3s-io/k3s
bumping timeouts for apiserver communication.
parent
0d900769d6
commit
af71c9670f
|
@ -975,7 +975,7 @@ def get_node_name():
|
|||
# Get all the nodes in the cluster
|
||||
cmd = 'kubectl --kubeconfig={} get no -o=json'.format(kubeconfig_path)
|
||||
cmd = cmd.split()
|
||||
deadline = time.time() + 60
|
||||
deadline = time.time() + 180
|
||||
while time.time() < deadline:
|
||||
try:
|
||||
raw = check_output(cmd)
|
||||
|
@ -1028,7 +1028,7 @@ def _apply_node_label(label, delete=False, overwrite=False):
|
|||
cmd = '{} --overwrite'.format(cmd)
|
||||
cmd = cmd.split()
|
||||
|
||||
deadline = time.time() + 60
|
||||
deadline = time.time() + 180
|
||||
while time.time() < deadline:
|
||||
code = subprocess.call(cmd)
|
||||
if code == 0:
|
||||
|
|
Loading…
Reference in New Issue