Skip to content

Commit

Permalink
fix NodePorts settings in Calico/node
Browse files Browse the repository at this point in the history
  • Loading branch information
gjmzj committed Nov 21, 2018
1 parent 2efb33a commit 5d068d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion roles/calico/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,4 @@
until: pod_status.stdout == "Running"
delegate_to: "{{ groups.deploy[0] }}"
retries: 15
delay: 8
delay: 15
4 changes: 4 additions & 0 deletions roles/calico/templates/calico.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@ spec:
value: "{{ FELIX_LOG_LVL }}"
- name: FELIX_HEALTHENABLED
value: "true"
# Set Kubernetes NodePorts: If services do use NodePorts outside Calico’s expected range,
# Calico will treat traffic to those ports as host traffic instead of pod traffic.
- name: FELIX_KUBENODEPORTRANGES
value: "{{ NODE_PORT_RANGE.split('-')[0] }}:{{ NODE_PORT_RANGE.split('-')[1] }}"
securityContext:
privileged: true
resources:
Expand Down

0 comments on commit 5d068d5

Please sign in to comment.