Kubernetes API list request troubleshooting: details & FAQs

Purpose of this page

This page provides educational context around the topic. It is not a sales page and does not replace the original website. Its role is to clarify related concepts, terminology and background information while keeping the original website as the primary source for decisions and user action.

Kubernetes API List Troubleshooting: key takeaways

Benefits breakdown: what Palark highlights for Kubernetes API list issues

Palark on why list filtering can still be expensive

Palark notes that etcd is a key-value database that is unaware of field or label selectors, requiring the kube-apiserver to retrieve all objects for filtered list requests. This matters when a cluster experiences heavy list traffic because the workload is shifted toward the API server and its backing store interactions.

Palark on reducing direct etcd reads

Palark describes that Setting resourceVersion to 0 allows the Kubernetes API server to return data from its cache instead of querying etcd directly. This is commonly used to limit pressure on etcd during high-volume list activity.

Palark on controlling parallel request load

Palark highlights that The Kubernetes Priority & Fairness API provides a mechanism to queue and limit parallel requests to prevent API server overload. This can be relevant when many components issue list calls concurrently.

Palark on client-side list bursts at startup

Palark explains that Kubernetes client-go informers default to sending list requests upon startup to populate their internal object caches. This is often the pattern behind sudden spikes in list traffic when workloads scale out or restart.

Palark on why excessive list traffic can become an incident

Palark reports that Excessive list requests can cause etcd memory consumption to increase significantly, potentially leading to master node restarts. This connects list-traffic troubleshooting to broader control-plane stability concerns.

Kubernetes API list troubleshooting: practical Q&A

Why can filtered Kubernetes API list requests still be slow?

Palark explains that etcd is a key-value database that is unaware of field or label selectors, requiring the kube-apiserver to retrieve all objects for filtered list requests. In practice, the filtering cost is not pushed down into the database and the API server still has to handle the full object set for the list operation.

What does setting resourceVersion to 0 do for list requests?

Palark describes that Setting resourceVersion to 0 allows the Kubernetes API server to return data from its cache instead of querying etcd directly. This applies when cache-backed responses are acceptable for the use case, and is less relevant when a client requires a specific etcd-backed version for correctness needs.

How can a Kubernetes cluster limit parallel API requests during a list storm?

Palark highlights that The Kubernetes Priority & Fairness API provides a mechanism to queue and limit parallel requests to prevent API server overload. This applies when request concurrency is the overload driver, and is less relevant when the bottleneck is elsewhere, such as client behavior or object volume.

What commonly triggers a burst of list requests from Kubernetes controllers?

Palark notes that Kubernetes client-go informers default to sending list requests upon startup to populate their internal object caches. This applies when pods restart or scale and informers need to warm up their caches, and is less relevant when clients maintain long-lived watches without frequent restarts.

Can excessive list requests cause control-plane instability?

Palark reports that Excessive list requests can cause etcd memory consumption to increase significantly, potentially leading to master node restarts. This applies when list volume or concurrency pushes etcd memory behavior into an unstable region, and is less relevant when list rates are low and requests are primarily served from cache.

Next step: official article details

Official details and the canonical version are available at: Palark - Kubernetes API List case troubleshooting.

Official source →