Browse Source
allow user to set env: FELIX_MTUIFACEPATTERN in calico-node.yml (#9330)
pull/9331/head
Shelming.Song
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
12 additions and
0 deletions
-
inventory/sample/group_vars/k8s_cluster/k8s-net-calico.yml
-
roles/network_plugin/calico/defaults/main.yml
-
roles/network_plugin/calico/templates/calico-node.yml.j2
|
|
@ -109,6 +109,10 @@ calico_pool_blocksize: 26 |
|
|
|
# calico_ip_auto_method: "interface=eth.*" |
|
|
|
# calico_ip6_auto_method: "interface=eth.*" |
|
|
|
|
|
|
|
# Set FELIX_MTUIFACEPATTERN, Pattern used to discover the host’s 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". |
|
|
|
# calico_felix_chaininsertmode: Insert |
|
|
|
|
|
|
|
|
|
@ -108,6 +108,10 @@ calico_wireguard_repo: https://download.copr.fedorainfracloud.org/results/jdoss/ |
|
|
|
# calico_ip_auto_method: "interface=eth.*" |
|
|
|
# calico_ip6_auto_method: "interface=eth.*" |
|
|
|
|
|
|
|
# Set FELIX_MTUIFACEPATTERN, Pattern used to discover the host’s 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) }}" |
|
|
|
|
|
|
|
kube_etcd_cacert_file: ca.pem |
|
|
|
|
|
@ -275,6 +275,10 @@ spec: |
|
|
|
- name: IP6_AUTODETECTION_METHOD |
|
|
|
value: "{{ calico_ip6_auto_method }}" |
|
|
|
{% endif %} |
|
|
|
{% if calico_felix_mtu_iface_pattern is defined %} |
|
|
|
- name: FELIX_MTUIFACEPATTERN |
|
|
|
value: "{{ calico_felix_mtu_iface_pattern }}" |
|
|
|
{% endif %} |
|
|
|
{% if enable_dual_stack_networks %} |
|
|
|
- name: IP6 |
|
|
|
value: autodetect |
|
|
|