Kubernetes v1.36 Introduces Server-Side Sharded List and Watch
- Kubernetes
- kube-state-metrics
AI Summary
Kubernetes v1.36 introduces server-side sharded List and Watch as an Alpha feature (KEP-5866) to address scalability bottlenecks in large clusters. Traditional client-side sharding still caused controllers to receive, deserialize, and discard full event streams, wasting CPU, memory, and network bandwidth. The new feature adds a shardSelector field to ListOptions, allowing API servers to filter events at the source using a deterministic 64-bit FNV-1a hash over fields like metadata.uid or metadata.namespace. This ensures that each controller replica only receives its designated slice of the resource collection, significantly reducing overhead in large-scale environments.
Key Takeaways
- Introduced as an Alpha feature in Kubernetes v1.36 via KEP-5866.
- Uses a deterministic 64-bit FNV-1a hash over object.metadata.uid or object.metadata.namespace.
- Requires enabling the ShardedListAndWatch feature gate on the API server.
Why it matters
Server-side sharded List and Watch significantly reduce network bandwidth, CPU, and memory overhead for high-cardinality resource controllers in large Kubernetes clusters by shifting filtering logic to the API server.
Conversation0
What would you add from your experience?
Checking your session…
Every good conversation starts with one perspective.