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
dfdcb567
Commit
dfdcb567
authored
6 years ago
by
Takashi Okamoto
Browse files
Options
Downloads
Patches
Plain Diff
Delete all cri-o containers when execute reset.yml.
parent
659cccc5
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/reset/tasks/main.yml
+10
-0
10 additions, 0 deletions
roles/reset/tasks/main.yml
with
10 additions
and
0 deletions
roles/reset/tasks/main.yml
+
10
−
0
View file @
dfdcb567
...
@@ -60,6 +60,16 @@
...
@@ -60,6 +60,16 @@
tags
:
tags
:
-
docker
-
docker
-
name
:
reset | remove all cri-o containers
shell
:
"
crictl
ps
-aq
|
xargs
-r
crictl
rm"
register
:
remove_all_crio_containers
retries
:
4
until
:
remove_all_crio_containers.rc ==
0
delay
:
5
tags
:
-
crio
when
:
manage_crio
-
name
:
reset | gather mounted kubelet dirs
-
name
:
reset | gather mounted kubelet dirs
shell
:
mount | grep /var/lib/kubelet/ | awk '{print $3}' | tac
shell
:
mount | grep /var/lib/kubelet/ | awk '{print $3}' | tac
check_mode
:
no
check_mode
:
no
...
...
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