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
6a7308d5
Commit
6a7308d5
authored
8 years ago
by
Antoine Legrand
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #372 from adidenko/calico-ipip-support
Support --ipip option for calico pool
parents
4419662f
c52c5f50
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/network_plugin/calico/defaults/main.yml
+3
-0
3 additions, 0 deletions
roles/network_plugin/calico/defaults/main.yml
roles/network_plugin/calico/tasks/main.yml
+17
-12
17 additions, 12 deletions
roles/network_plugin/calico/tasks/main.yml
with
20 additions
and
12 deletions
roles/network_plugin/calico/defaults/main.yml
+
3
−
0
View file @
6a7308d5
...
...
@@ -2,6 +2,9 @@
# Enables Internet connectivity from containers
nat_outgoing
:
true
# Use IP-over-IP encapsulation across hosts
ipip
:
false
# cloud_provider can only be set to 'gce' or 'aws'
# cloud_provider:
calicoctl_image_repo
:
calico/ctl
...
...
This diff is collapsed.
Click to expand it.
roles/network_plugin/calico/tasks/main.yml
+
17
−
12
View file @
6a7308d5
...
...
@@ -53,23 +53,28 @@
register
:
calico_conf
run_once
:
true
-
name
:
Calico | Configure calico network pool
command
:
"
{{
bin_dir
}}/calicoctl
pool
add
{{
kube_pods_subnet
}}"
-
name
:
Calico | Define ipip pool argument
run_once
:
true
when
:
calico_conf.status == 404 and cloud_provider is not defined
and not nat_outgoing|default(false) or
(nat_outgoing|default(false) and peer_with_router
|default(false)
)
set_fact
:
ipip_arg
:
"
--ipip"
when
:
cloud_provider is defined or ipip
|default(false)
-
name
:
Calico | Configure calico network pool for cloud
command
:
"
{{
bin_dir
}}/calicoctl
pool
add
{{
kube_pods_subnet
}}
--ipip
--nat-outgoing"
-
name
:
Calico | Define nat-outgoing pool argument
run_once
:
true
when
:
calico_conf.status == 404 and cloud_provider is defined
set_fact
:
nat_arg
:
"
--nat-outgoing"
when
:
nat_outgoing|default(false) and not peer_with_router|default(false)
-
name
:
Calico | Configure calico network pool with nat outgoing
command
:
"
{{
bin_dir}}/calicoctl
pool
add
{{
kube_pods_subnet
}}
--nat-outgoing"
-
name
:
Calico | Define calico pool task name
run_once
:
true
when
:
calico_conf.status == 404 and cloud_provider is not defined
and nat_outgoing|default(false) and not peer_with_router|default(false)
set_fact
:
pool_task_name
:
"
with
options
{{
ipip_arg|default('')
}}
{{
nat_arg|default('')
}}"
when
:
ipip_arg|default(false) or nat_arg|default(false)
-
name
:
Calico | Configure calico network pool {{ pool_task_name|default('') }}
command
:
"
{{
bin_dir}}/calicoctl
pool
add
{{
kube_pods_subnet
}}
{{
ipip_arg|default('')
}}
{{
nat_arg|default('')
}}"
run_once
:
true
when
:
calico_conf.status ==
404
-
name
:
Calico | Get calico configuration from etcd
uri
:
...
...
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