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
labelsfilter: ignore StatefulSet-related labels by default for CID creation #28003
Conversation
Commit 0a9a0bb2a26cb3e2f13e43702fe6bae44be7a541 does not match "(?m)^Signed-off-by:". Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin |
0a9a0bb
to
d323de2
Compare
@nathanjsweet @lambdanis PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docs ok, overall the change looks reasonable to me.
Documentation/operations/performance/scalability/identity-relevant-labels.rst
Outdated
Show resolved
Hide resolved
@tosi3k CI is unhappy with the long commit message (https://github.com/cilium/cilium/actions/runs/6187912035/job/16803422512?pr=28003):
Could you please reword it? |
…eation This prevents creating a CiliumIdentity object per StatefulSet-owned Pod. This was especially costly in clusters with large quantities of StatefulSet pods and basically limited the number of such pods in a single cluster to a theoretical max number of CIDs (2^16 ~ 65k). Signed-off-by: Antoni Zawodny <zawodny@google.com>
4d795f5
to
b082733
Compare
Done; thanks for pointing this out. |
/test |
Hi @tosi3k, it looks like this PR introduced upgrade impact for users upgrading to Cilium v1.15 because users may have policies that rely on some of the labels that are now ignored. This issue/comment goes into detail about the issues behind this and some suggestions about how to improve: #32213 (comment) . I'll note that while the |
Beforehand, every single Pod owned by a StatefulSet object had its own
CiliumIdentity
because each such Pod had their own unique set of label values (more about these labels can be found here and here).In large clusters with many StatefulSet-owned Pods it is problematic, especially when the churn of such objects is high, resulting in a high churn of such CIDs that doesn't scale well. In addition, it essentially limited the number of such Pods to the theoretical number of CIDs in a cluster which is 2^16 ~ 65k.