Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
94d4ce5a
Commit
94d4ce5a
authored
5 years ago
by
Matthew Mosesohn
Committed by
Kubernetes Prow Robot
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Retry cleaning up calico-node container (#5302)
Change-Id: Iad27b107860213759c7ae51f0891d7e5e7c6d96b
parent
81da231b
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/network_plugin/calico/handlers/main.yml
+6
-0
6 additions, 0 deletions
roles/network_plugin/calico/handlers/main.yml
with
6 additions
and
0 deletions
roles/network_plugin/calico/handlers/main.yml
+
6
−
0
View file @
94d4ce5a
...
...
@@ -13,10 +13,16 @@
-
name
:
docker | delete calico-node containers
shell
:
"
docker
ps
-af
name=k8s_POD_calico-node*
-q
|
xargs
--no-run-if-empty
docker
rm
-f"
register
:
docker_calico_node_remove
until
:
docker_calico_node_remove is succeeded
retries
:
5
when
:
container_manager in ["docker"]
-
name
:
containerd | delete calico-node containers
shell
:
'
crictl
pods
--name
calico-node-*
-q
|
xargs
-I%
--no-run-if-empty
bash
-c
"crictl
stopp
%
&&
crictl
rmp
%"'
register
:
crictl_calico_node_remove
until
:
crictl_calico_node_remove is succeeded
retries
:
5
when
:
container_manager in ["crio", "containerd"]
-
name
:
Calico | Reload NetworkManager
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment