projectcalico / calico

Cloud native networking and network security
https://docs.tigera.io/calico/latest/about/
Apache License 2.0
6.04k stars 1.35k forks source link

add env var to disable tunnel in calico node #9443

Open gojoy opened 2 weeks ago

gojoy commented 2 weeks ago

Description

When the env var CALICO_DISABLE_TUNNEL is set, the process allocate-tunnel-addrs is not started.

In our environment, we only use BGP, didn't use tunnel, we found when create/delete/update a IPPool, all calico-node will get and update node many times, it will make k8s apiserver load very high.Even if the Typha component is deployed, these problems cannot be alleviated. We have also noticed that there is already an environment variable CALICO_DISABLE_FELIX that has a similar function. So add an another environment variable CALICO_DISABLE_TUNNEL that can control whether to start the process allocate-tunnel-addrs or not.

Related issues/PRs

Fixs #9394

Todos

Release Note

TBD

Reminder for the reviewer

Make sure that this PR has the correct labels and milestone set.

Every PR needs one docs-* label.

Every PR needs one release-note-* label.

Other optional labels:

CLAassistant commented 2 weeks ago

CLA assistant check
All committers have signed the CLA.