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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
aaa3f1c4
Commit
aaa3f1c4
authored
Sep 29, 2016
by
Smaine Kahlouch
Committed by
GitHub
Sep 29, 2016
Browse files
Options
Downloads
Plain Diff
Merge pull request #502 from adidenko/custom-calico-hyperkube
Allow to use custom "canalized" calico cni
parents
5889f7af
2b686648
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/network_plugin/calico/defaults/main.yml
+3
-2
3 additions, 2 deletions
roles/network_plugin/calico/defaults/main.yml
roles/network_plugin/calico/tasks/main.yml
+11
-11
11 additions, 11 deletions
roles/network_plugin/calico/tasks/main.yml
with
14 additions
and
13 deletions
roles/network_plugin/calico/defaults/main.yml
+
3
−
2
View file @
aaa3f1c4
...
@@ -5,5 +5,6 @@ nat_outgoing: true
...
@@ -5,5 +5,6 @@ nat_outgoing: true
# Use IP-over-IP encapsulation across hosts
# Use IP-over-IP encapsulation across hosts
ipip
:
false
ipip
:
false
# cloud_provider can only be set to 'gce' or 'aws'
# Set to true if you want your calico cni binaries to overwrite the
# cloud_provider:
# ones from hyperkube while leaving other cni plugins intact.
overwrite_hyperkube_cni
:
false
This diff is collapsed.
Click to expand it.
roles/network_plugin/calico/tasks/main.yml
+
11
−
11
View file @
aaa3f1c4
...
@@ -32,18 +32,8 @@
...
@@ -32,18 +32,8 @@
use_hyperkube_cni
:
true
use_hyperkube_cni
:
true
when
:
kube_version | version_compare('v1.3.4','>=')
when
:
kube_version | version_compare('v1.3.4','>=')
-
name
:
Calico | Install calico cni bin
command
:
rsync -piu "{{ local_release_dir }}/calico/bin/calico" "/opt/cni/bin/calico"
changed_when
:
false
when
:
"
{{
not
use_hyperkube_cni|bool
}}"
-
name
:
Calico | Install calico-ipam cni bin
command
:
rsync -piu "{{ local_release_dir }}/calico/bin/calico" "/opt/cni/bin/calico-ipam"
changed_when
:
false
when
:
"
{{
not
use_hyperkube_cni|bool
}}"
-
name
:
Calico | Copy cni plugins from hyperkube
-
name
:
Calico | 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/"
command
:
"
/usr/bin/docker
run
--rm
-v
/opt/cni/bin:/cnibindir
{{
hyperkube_image_repo
}}:{{
hyperkube_image_tag
}}
/
usr/bin/rsync
-
a
/opt/cni/bin/
/cnibindir/"
register
:
cni_task_result
register
:
cni_task_result
until
:
cni_task_result.rc ==
0
until
:
cni_task_result.rc ==
0
retries
:
4
retries
:
4
...
@@ -51,6 +41,16 @@
...
@@ -51,6 +41,16 @@
changed_when
:
false
changed_when
:
false
when
:
"
{{
use_hyperkube_cni|bool
}}"
when
:
"
{{
use_hyperkube_cni|bool
}}"
-
name
:
Calico | Install calico cni bin
command
:
rsync -pi "{{ local_release_dir }}/calico/bin/calico" "/opt/cni/bin/calico"
changed_when
:
false
when
:
"
{{
not
use_hyperkube_cni|bool
or
overwrite_hyperkube_cni|bool
}}"
-
name
:
Calico | Install calico-ipam cni bin
command
:
rsync -pi "{{ local_release_dir }}/calico/bin/calico-ipam" "/opt/cni/bin/calico-ipam"
changed_when
:
false
when
:
"
{{
not
use_hyperkube_cni|bool
or
overwrite_hyperkube_cni|bool
}}"
-
name
:
Calico | wait for etcd
-
name
:
Calico | wait for etcd
uri
:
url=http://localhost:2379/health
uri
:
url=http://localhost:2379/health
register
:
result
register
:
result
...
...
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
sign in
to comment