Evicted pods should respawn
This commit is contained in:
@@ -1241,7 +1241,8 @@ def all_kube_system_pods_running():
|
|||||||
result = json.loads(output)
|
result = json.loads(output)
|
||||||
for pod in result['items']:
|
for pod in result['items']:
|
||||||
status = pod['status']['phase']
|
status = pod['status']['phase']
|
||||||
if status != 'Running':
|
# Evicted nodes should re-spawn
|
||||||
|
if status != 'Running' and pod['status']['reason'] != 'Evicted':
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
Reference in New Issue
Block a user