when apiserver cache is not ready, the List request with resourceVersion=0 fetch data from the apiserver cache #124818
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
sig/api-machinery
Categorizes an issue or PR as relevant to SIG API Machinery.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
What would you like to be added?
when apiserver cache is not ready, the List request with resourceVersion=0 fetch data from the apiserver cache, don't directly obtain from etcd.
staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go
Why is this needed?
In our cluster, the number of some resources like pods are very large(300k+), the number of node is 7k+. the apiserver cache sometime accumulating lag, the kubelet List request of get pod directly obtain from etcd. It consumes lots of cpu & memory that's not expected. i want List request to fetch data from the apiserver cache like ConsistentListFromCache feature gate
The text was updated successfully, but these errors were encountered: