Skip to content
Snippets Groups Projects
Commit 226d5ed7 authored by Danny Kulchinsky's avatar Danny Kulchinsky Committed by Kubernetes Prow Robot
Browse files

[Calico] Define FELIX_KUBENODEPORTRANGES when kube-proxy in ipvs mode (#4173)

* Define FELIX_KUBENODEPORTRANGES when kube-proxy in ipvs mode

* ensure kube_apiserver_node_port_range is defined
parent 52e0aa7a
No related branches found
No related tags found
No related merge requests found
...@@ -124,6 +124,10 @@ spec: ...@@ -124,6 +124,10 @@ spec:
value: "{{ calico_endpoint_to_host_action|default('RETURN') }}" value: "{{ calico_endpoint_to_host_action|default('RETURN') }}"
- name: FELIX_HEALTHHOST - name: FELIX_HEALTHHOST
value: "{{ calico_healthhost }}" value: "{{ calico_healthhost }}"
{% if kube_proxy_mode == 'ipvs' and kube_apiserver_node_port_range is defined %}
- name: FELIX_KUBENODEPORTRANGES
value: "{{ kube_apiserver_node_port_range.split('-')[0] }}:{{ kube_apiserver_node_port_range.split('-')[1] }}"
{% endif %}
# Prior to v3.2.1 iptables didn't acquire the lock, so Calico's own implementation of the lock should be used, # Prior to v3.2.1 iptables didn't acquire the lock, so Calico's own implementation of the lock should be used,
# this is not required in later versions https://github.com/projectcalico/calico/issues/2179 # this is not required in later versions https://github.com/projectcalico/calico/issues/2179
{% if calico_version is version('v3.2.1', '<') %} {% if calico_version is version('v3.2.1', '<') %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment