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
152c4090
Commit
152c4090
authored
9 years ago
by
Smana
Browse files
Options
Downloads
Patches
Plain Diff
calico: enabling nat outgoing by default
parent
a46d4efb
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
+2
-0
2 additions, 0 deletions
roles/network_plugin/calico/defaults/main.yml
roles/network_plugin/calico/tasks/main.yml
+10
-2
10 additions, 2 deletions
roles/network_plugin/calico/tasks/main.yml
with
12 additions
and
2 deletions
roles/network_plugin/calico/defaults/main.yml
+
2
−
0
View file @
152c4090
---
---
# Enables Internet connectivity from containers
nat_outgoing
:
true
# cloud_provider: no
# cloud_provider: no
This diff is collapsed.
Click to expand it.
roles/network_plugin/calico/tasks/main.yml
+
10
−
2
View file @
152c4090
...
@@ -48,15 +48,23 @@
...
@@ -48,15 +48,23 @@
register
:
calico_conf
register
:
calico_conf
run_once
:
true
run_once
:
true
-
name
:
Calico | Configure calico network pool
command
:
"
{{
bin_dir
}}/calicoctl
pool
add
{{
kube_pods_subnet
}}"
run_once
:
true
when
:
calico_conf.status == 404 and (cloud_provider is not defined or cloud_provider != True)
and not nat_outgoing|default(false) or
(nat_outgoing|default(false) and peer_with_router|default(false))
-
name
:
Calico | Configure calico network pool for cloud
-
name
:
Calico | Configure calico network pool for cloud
command
:
"
{{
bin_dir
}}/calicoctl
pool
add
{{
kube_pods_subnet
}}
--ipip
--nat-outgoing"
command
:
"
{{
bin_dir
}}/calicoctl
pool
add
{{
kube_pods_subnet
}}
--ipip
--nat-outgoing"
run_once
:
true
run_once
:
true
when
:
calico_conf.status == 404 and cloud_provider is defined and cloud_provider == True
when
:
calico_conf.status == 404 and cloud_provider is defined and cloud_provider == True
-
name
:
Calico | Configure calico network pool
-
name
:
Calico | Configure calico network pool
with nat outgoing
command
:
"
{{
bin_dir
}}/calicoctl
pool
add
{{
kube_pods_subnet
}}"
command
:
"
{{
bin_dir}}/calicoctl
pool
add
{{
kube_pods_subnet
}}
--nat-outgoing
"
run_once
:
true
run_once
:
true
when
:
calico_conf.status == 404 and (cloud_provider is not defined or cloud_provider != True)
when
:
calico_conf.status == 404 and (cloud_provider is not defined or cloud_provider != True)
and nat_outgoing|default(false) and not peer_with_router|default(false)
-
name
:
Calico | Get calico configuration from etcd
-
name
:
Calico | Get calico configuration from etcd
uri
:
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