Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there an upper limit when using NetworkPolicy in calico? #9391

Open
newhuangchuan opened this issue Oct 25, 2024 · 1 comment
Open

Is there an upper limit when using NetworkPolicy in calico? #9391

newhuangchuan opened this issue Oct 25, 2024 · 1 comment

Comments

@newhuangchuan
Copy link

Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce (for bugs)

Context

Hello, calico contributors. I am a newbie who has just started using calico. I have a question and hope to get your answer.

  1. When the calico plug-in is in a kubernetes cluster, at what scale will the NetworkPolicy agent cause considerable pressure on Kubernetes control? (For example: node scale or pod scale, etc.)
  2. When NetworkPolicy encounters such a bottleneck, what methods should be adopted to solve large-scale problems?

Your Environment

  • Calico version v3.28.2
  • Calico dataplane (iptables, windows etc.)
  • Orchestrator version (e.g. kubernetes, mesos, rkt):
  • Operating System and version:
  • Link to your project (optional):
@fasaxc
Copy link
Member

fasaxc commented Oct 25, 2024

You should deploy with the operator if you care about scale. It will automatically deploy our "scale out proxy" (Typha) and secure it with TLS. Calico is designed to filter the policy set so that only the policy that is needed on a particular node is rendered there. This way, the load on a node scales with the amount of active policy on your node rather than the total size of the policy set.

Typha is very effective at limiting the impact on the API server. We test to 5k nodes and hundreds of thousands of pods. There are users running at this scale too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants