mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-19 00:31:00 +00:00
Evicted pods should respawn
This commit is contained in:
parent
7706957324
commit
b2a6eb99c1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user