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
49d921cf
Commit
49d921cf
authored
5 years ago
by
nico-netminded
Committed by
Kubernetes Prow Robot
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Restart canal after scale or upgrade. Just like PR#4531, but for canal (#4992)
parent
fe29c97a
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/network_plugin/canal/handlers/main.yml
+14
-0
14 additions, 0 deletions
roles/network_plugin/canal/handlers/main.yml
roles/network_plugin/canal/tasks/main.yml
+2
-0
2 additions, 0 deletions
roles/network_plugin/canal/tasks/main.yml
with
16 additions
and
0 deletions
roles/network_plugin/canal/handlers/main.yml
0 → 100644
+
14
−
0
View file @
49d921cf
---
-
name
:
reset_canal_cni
command
:
/bin/true
notify
:
-
delete 10-canal.conflist
-
delete canal-node containers
-
name
:
delete 10-canal.conflist
file
:
path
:
/etc/canal/10-canal.conflist
state
:
absent
-
name
:
delete canal-node containers
shell
:
"
docker
ps
-af
name=k8s_POD_canal-node*
-q
|
xargs
--no-run-if-empty
docker
rm
-f"
This diff is collapsed.
Click to expand it.
roles/network_plugin/canal/tasks/main.yml
+
2
−
0
View file @
49d921cf
...
...
@@ -4,6 +4,8 @@
src
:
"
cni-canal.conflist.j2"
dest
:
"
/etc/cni/net.d/{%
if
calico_version
is
version('v3.3.0',
'>=')
%}canal.conflist.template{%
else
%}10-canal.conflist{%
endif
%}"
owner
:
kube
register
:
canal_conflist
notify
:
reset_canal_cni
-
name
:
Canal | Create canal certs directory
file
:
...
...
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