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
f7dc73b8
Unverified
Commit
f7dc73b8
authored
7 years ago
by
Andreas Krüger
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #2521 from f84anton/patch-1
optional calico_ip_auto_method variable with IP_AUTODETECTION_METHOD
parents
8eac37fa
a75598b3
Branches
Branches containing commit
Tags
Tags containing commit
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
+6
-0
6 additions, 0 deletions
roles/network_plugin/calico/defaults/main.yml
roles/network_plugin/calico/templates/calico-node.yml.j2
+5
-0
5 additions, 0 deletions
roles/network_plugin/calico/templates/calico-node.yml.j2
with
11 additions
and
0 deletions
roles/network_plugin/calico/defaults/main.yml
+
6
−
0
View file @
f7dc73b8
...
...
@@ -45,3 +45,9 @@ rbac_resources:
-
sa
-
clusterrole
-
clusterrolebinding
# If you want to use non default IP_AUTODETECTION_METHOD for calico node set this option to one of:
# * can-reach=DESTINATION
# * interface=INTERFACE-REGEX
# see https://docs.projectcalico.org/v3.0/reference/node/configuration#ip-autodetection-methods
#calico_ip_auto_method: "interface=eth.*"
This diff is collapsed.
Click to expand it.
roles/network_plugin/calico/templates/calico-node.yml.j2
+
5
−
0
View file @
f7dc73b8
...
...
@@ -108,10 +108,15 @@ spec:
configMapKeyRef:
name: calico-config
key: etcd_cert
{% if calico_ip_auto_method is defined %}
- name: IP_AUTODETECTION_METHOD
value: "{{ calico_ip_auto_method }}"
{% else %}
- name: IP
valueFrom:
fieldRef:
fieldPath: status.hostIP
{% endif %}
- name: NODENAME
valueFrom:
fieldRef:
...
...
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