mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-01 09:38:12 -03:30
Fix crictl paths and some of docker paths (#6961)
If crictl (and docker) binaries are deployed to the directories that are not in standard PATH (e.g. /usr/local/bin), it is required to specify full path to the binaries.
This commit is contained in:
committed by
GitHub
parent
c6f6940459
commit
d4204a42fd
@@ -6,14 +6,14 @@
|
||||
- containerd | delete kube-router containers
|
||||
|
||||
- name: docker | delete kube-router containers
|
||||
shell: "docker ps -af name=k8s_POD_kube-router* -q | xargs --no-run-if-empty docker rm -f"
|
||||
shell: "{{ docker_bin_dir }}/docker ps -af name=k8s_POD_kube-router* -q | xargs --no-run-if-empty docker rm -f"
|
||||
register: docker_kube_router_remove
|
||||
until: docker_kube_router_remove is succeeded
|
||||
retries: 5
|
||||
when: container_manager in ["docker"]
|
||||
|
||||
- name: containerd | delete kube-router containers
|
||||
shell: 'crictl pods --name kube-router* -q | xargs -I% --no-run-if-empty bash -c "crictl stopp % && crictl rmp %"'
|
||||
shell: '{{ bin_dir }}/crictl pods --name kube-router* -q | xargs -I% --no-run-if-empty bash -c "{{ bin_dir }}/crictl stopp % && {{ bin_dir }}/crictl rmp %"'
|
||||
register: crictl_kube_router_remove
|
||||
until: crictl_kube_router_remove is succeeded
|
||||
retries: 5
|
||||
|
||||
Reference in New Issue
Block a user