kubelet should alway get lastest secret/configmap resource in pod add event #124701
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
sig/node
Categorizes an issue or PR as relevant to SIG Node.
Projects
What happened?
The logic is as follows:
but probabilistically, especially at lots of operating pressures. The third step is performed before the second step. As a result, the old secret is mounted when the pod is started.
https://kubernetes.io/docs/reference/config-api/kubelet-config.v1beta1/
What did you expect to happen?
solution: kubelet should alway get lastest secret/configmap resource in pod add event instead of using cache
How can we reproduce it (as minimally and precisely as possible)?
see What happend
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)
The text was updated successfully, but these errors were encountered: