Open chaunceyctx97 opened 3 days ago
This issue is currently awaiting triage.
If a SIG or subproject determines this is a relevant issue, they will accept it by applying the triage/accepted
label and provide further guidance.
The triage/accepted
label can be added by org members by writing /triage accepted
in a comment.
In plugin/pkg/auth/authorizer/node/graph_populator.go AddGraphEventHandlers
, when add pod, the graph will add pod, and then add the secret or configmap.Then when the request arrived ,the apiserver will authorize. I think it may be the reason why the response code of corresponding request was 403. But I don't know how to fix it.
Did you force delete the original pods (grace period of 0)?
Were the forbidden messages seen between when the old pods were deleted and the new ones created, or after the new ones were created? If after, how long after they were scheduled to the node?
Did the forbidden error resolve itself, or block the pods from starting?
What happened?
In k8s 1.29 cluster, I created 100 pods, each of which mounted 50 secrets. Then I deleted all the pods and created 100 pods again, repeating this process. I noticed that there were
warning
events aboutfailed to sync secret cache: timed out waiting for the condition
. After checking the apiserver logs, I found that the response code of corresponding request was 403 meaning unauthorized. Maybe the node authorizer may have a delay in updating the graph?/sig auth
What did you expect to happen?
no warning events appear
How can we reproduce it (as minimally and precisely as possible)?
In k8s 1.29 cluster
repeating above process
Anything else we need to know?
No response
Kubernetes version
Cloud provider
OS version
Install tools
Container runtime (CRI) and version (if applicable)
Related plugins (CNI, CSI, ...) and versions (if applicable)