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
5046466d
Commit
5046466d
authored
8 years ago
by
Smaine Kahlouch
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #509 from kubespray/cnicopyweave
Copy hyperkube CNI plugins when using weave
parents
0cc581b2
a3fe1e78
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/network_plugin/weave/tasks/main.yml
+20
-0
20 additions, 0 deletions
roles/network_plugin/weave/tasks/main.yml
with
20 additions
and
0 deletions
roles/network_plugin/weave/tasks/main.yml
+
20
−
0
View file @
5046466d
...
@@ -9,6 +9,26 @@
...
@@ -9,6 +9,26 @@
notify
:
notify
:
-
restart docker
-
restart docker
-
name
:
Weave | Determine hyperkube cni to use depending of the version of kube
set_fact
:
use_hyperkube_cni
:
>
{%- if kube_version | version_compare('v1.3.4','>=') -%}
true
{%- elif kube_version | version_compare('v1.3.4','<') -%}
false
{%- else -%}
{{ ErrorCannotRecognizeVersion }}
{%- endif -%}
-
name
:
Weave | Copy cni plugins from hyperkube
command
:
"
/usr/bin/docker
run
--rm
-v
/opt/cni/bin:/cnibindir
{{
hyperkube_image_repo
}}:{{
hyperkube_image_tag
}}
/bin/cp
-r
/opt/cni/bin/.
/cnibindir/"
register
:
cni_task_result
until
:
cni_task_result.rc ==
0
retries
:
4
delay
:
"
{{
retry_stagger
|
random
+
3
}}"
changed_when
:
false
when
:
"
{{
use_hyperkube_cni|bool
}}"
-
name
:
Weave | Install weave
-
name
:
Weave | Install weave
command
:
rsync -piu "{{ local_release_dir }}/weave/bin/weave" "{{ bin_dir }}/weave"
command
:
rsync -piu "{{ local_release_dir }}/weave/bin/weave" "{{ bin_dir }}/weave"
changed_when
:
false
changed_when
:
false
...
...
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