Evicted pods should respawn

pull/6/head
Konstantinos Tsakalozos 2017-12-20 16:30:07 +02:00
parent 7706957324
commit b2a6eb99c1
1 changed files with 2 additions and 1 deletions

View File

@ -1241,7 +1241,8 @@ def all_kube_system_pods_running():
result = json.loads(output)
for pod in result['items']:
status = pod['status']['phase']
if status != 'Running':
# Evicted nodes should re-spawn
if status != 'Running' and pod['status']['reason'] != 'Evicted':
return False
return True