allow user to set env: FELIX_MTUIFACEPATTERN in calico-node.yml (#9330)

This commit is contained in:
Shelming.Song 2022-09-27 12:57:45 +08:00 committed by GitHub
parent e486151aea
commit d62c67a5f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 0 deletions

View file

@ -109,6 +109,10 @@ calico_pool_blocksize: 26
# calico_ip_auto_method: "interface=eth.*" # calico_ip_auto_method: "interface=eth.*"
# calico_ip6_auto_method: "interface=eth.*" # calico_ip6_auto_method: "interface=eth.*"
# Set FELIX_MTUIFACEPATTERN, Pattern used to discover the hosts interface for MTU auto-detection.
# see https://projectcalico.docs.tigera.io/reference/felix/configuration
# calico_felix_mtu_iface_pattern: "^((en|wl|ww|sl|ib)[opsx].*|(eth|wlan|wwan).*)"
# Choose the iptables insert mode for Calico: "Insert" or "Append". # Choose the iptables insert mode for Calico: "Insert" or "Append".
# calico_felix_chaininsertmode: Insert # calico_felix_chaininsertmode: Insert

View file

@ -108,6 +108,10 @@ calico_wireguard_repo: https://download.copr.fedorainfracloud.org/results/jdoss/
# calico_ip_auto_method: "interface=eth.*" # calico_ip_auto_method: "interface=eth.*"
# calico_ip6_auto_method: "interface=eth.*" # calico_ip6_auto_method: "interface=eth.*"
# Set FELIX_MTUIFACEPATTERN, Pattern used to discover the hosts interface for MTU auto-detection.
# see https://projectcalico.docs.tigera.io/reference/felix/configuration
# calico_felix_mtu_iface_pattern: "^((en|wl|ww|sl|ib)[opsx].*|(eth|wlan|wwan).*)"
calico_baremetal_nodename: "{{ kube_override_hostname | default(inventory_hostname) }}" calico_baremetal_nodename: "{{ kube_override_hostname | default(inventory_hostname) }}"
kube_etcd_cacert_file: ca.pem kube_etcd_cacert_file: ca.pem

View file

@ -275,6 +275,10 @@ spec:
- name: IP6_AUTODETECTION_METHOD - name: IP6_AUTODETECTION_METHOD
value: "{{ calico_ip6_auto_method }}" value: "{{ calico_ip6_auto_method }}"
{% endif %} {% endif %}
{% if calico_felix_mtu_iface_pattern is defined %}
- name: FELIX_MTUIFACEPATTERN
value: "{{ calico_felix_mtu_iface_pattern }}"
{% endif %}
{% if enable_dual_stack_networks %} {% if enable_dual_stack_networks %}
- name: IP6 - name: IP6
value: autodetect value: autodetect