Use async/poll on drain tasks to prevent SSH connection timeouts (#13081)

This commit is contained in:
NoNE
2026-03-17 10:01:36 +01:00
committed by GitHub
parent 3c6d368397
commit 39b97464be
2 changed files with 6 additions and 0 deletions

View File

@@ -17,6 +17,8 @@
--grace-period {{ drain_grace_period }}
--timeout {{ drain_timeout }}
--delete-emptydir-data {{ kube_override_hostname }}
async: "{{ (drain_timeout | regex_replace('s$', '') | int) + 120 }}"
poll: 15
when:
- groups['kube_control_plane'] | length > 0
# ignore servers that are not nodes