Skip to content
Snippets Groups Projects
Unverified Commit 4ddbd2bd authored by 蒋航's avatar 蒋航 Committed by GitHub
Browse files

Add Retry for restart kube-controller-manager (#10013)

parent f9f5143c
No related branches found
No related tags found
No related merge requests found
......@@ -78,6 +78,10 @@
- name: Preinstall | restart kube-controller-manager crio/containerd
shell: "{{ bin_dir }}/crictl pods --name kube-controller-manager* -q | xargs -I% --no-run-if-empty bash -c '{{ bin_dir }}/crictl stopp % && {{ bin_dir }}/crictl rmp %'"
register: preinstall_restart_controller_manager
retries: 10
delay: 1
until: preinstall_restart_controller_manager.rc == 0
when:
- container_manager in ['crio', 'containerd']
- inventory_hostname in groups['kube_control_plane']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment