Qingkun Li
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
roles/kubernetes/node/tasks/main.yml
|
|
@ -153,7 +153,7 @@ |
|
|
|
set_fact: |
|
|
|
kube_proxy_cleanup_command: >- |
|
|
|
{%- if container_manager in ['docker', 'crio'] %} |
|
|
|
{{ docker_bin_dir }}/docker run --rm --privileged -v /lib/modules:{{ kube_proxy_image_repo }}:{{ kube_version }} --cleanup |
|
|
|
{{ docker_bin_dir }}/docker run --rm --privileged -v /lib/modules:/lib/modules {{ kube_proxy_image_repo }}:{{ kube_version }} kube-proxy --cleanup |
|
|
|
{%- elif container_manager == "containerd" %} |
|
|
|
ctr run --rm --mount type=bind,src=/lib/modules,dst=/lib/modules,options=rbind:rw {{ kube_proxy_image_repo }}:{{ kube_version }} kube-proxy --cleanup |
|
|
|
{%- endif %} |
|
|
|