Support configuring the Calico iptables insert mode (#5473)
* Support configuring the insert mode Defaults to the upstream default https://docs.projectcalico.org/v3.9/reference/felix/configuration so nothing should change for existing deployments. This allows coexistence with other firewall management technologies. * Add a note to the sample config
This commit is contained in:
parent
168241df4f
commit
158d998ec4
3 changed files with 5 additions and 0 deletions
|
@ -63,3 +63,5 @@
|
||||||
# * interface=INTERFACE-REGEX
|
# * interface=INTERFACE-REGEX
|
||||||
# see https://docs.projectcalico.org/reference/node/configuration
|
# see https://docs.projectcalico.org/reference/node/configuration
|
||||||
# calico_ip_auto_method: "interface=eth.*"
|
# calico_ip_auto_method: "interface=eth.*"
|
||||||
|
# Choose the iptables insert mode for Calico: "Insert" or "Append".
|
||||||
|
# calico_felix_chaininsertmode: Insert
|
||||||
|
|
|
@ -31,6 +31,7 @@ calicoctl_memory_limit: 170M
|
||||||
calicoctl_cpu_limit: 100m
|
calicoctl_cpu_limit: 100m
|
||||||
calicoctl_memory_requests: 32M
|
calicoctl_memory_requests: 32M
|
||||||
calicoctl_cpu_requests: 250m
|
calicoctl_cpu_requests: 250m
|
||||||
|
calico_felix_chaininsertmode: Insert
|
||||||
|
|
||||||
# Enable Prometheus Metrics endpoint for felix
|
# Enable Prometheus Metrics endpoint for felix
|
||||||
calico_felix_prometheusmetricsenabled: false
|
calico_felix_prometheusmetricsenabled: false
|
||||||
|
|
|
@ -228,6 +228,8 @@ spec:
|
||||||
- name: FELIX_IPINIPMTU
|
- name: FELIX_IPINIPMTU
|
||||||
value: "{{ calico_mtu }}"
|
value: "{{ calico_mtu }}"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
- name: FELIX_CHAININSERTMODE
|
||||||
|
value: "{{ calico_felix_chaininsertmode }}"
|
||||||
- name: FELIX_PROMETHEUSMETRICSENABLED
|
- name: FELIX_PROMETHEUSMETRICSENABLED
|
||||||
value: "{{ calico_felix_prometheusmetricsenabled }}"
|
value: "{{ calico_felix_prometheusmetricsenabled }}"
|
||||||
- name: FELIX_PROMETHEUSMETRICSPORT
|
- name: FELIX_PROMETHEUSMETRICSPORT
|
||||||
|
|
Loading…
Reference in a new issue