13f5217d88
In order to mitigate sporadic data races in etcd (publish error: etcdserver: request timed out"): - Add etcd_start_delay and kubelet_start_delay (defaults to a 5 sec.) - Increase default start sleep times to foo_start_delay from a 1 sec. - Add restart sleeping as well. - Add missing start sleep commands as appropriate. Closes: https://github.com/kubespray/kargo/issues/342 Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
16 lines
358 B
YAML
16 lines
358 B
YAML
---
|
|
- name: restart kubelet
|
|
command: /bin/true
|
|
notify:
|
|
- Kubelet | reload systemd
|
|
- Kubelet | reload kubelet
|
|
|
|
- name: Kubelet | reload systemd
|
|
command: systemctl daemon-reload
|
|
when: ansible_service_mgr == "systemd"
|
|
|
|
- name: Kubelet | reload kubelet
|
|
service:
|
|
name: kubelet
|
|
state: restarted
|
|
sleep: "{{ kubelet_start_delay|int }}"
|