Kubernetes Performance Tuning to Speed Things
Ok, let's speed up Kubernetes 👇
Kubelet relies on kube-apiserver to fetch pod details,
such as their status and configuration.
The problem: 🧐
- Kubelet was limited to just 5 requests/second to the kube-apiserver (before v1.26)
- This behavior causes some delays in large clusters.
What can we do?
In Kubernetes 1.27, the default kubeAPIQPS limit was increased.
In large cluster:
This will enhance pod startup time and enhance Kubernetes performance.
- The kubeAPIBurst (burst requests) limit jumps to 100,
- allowing kubelet to fire off 100 requests quickly when needed.
Do the following performance tuning on VM based setup:
1. You can increase kubeAPIQPS to 15 or 20.
2. I'm not recommending 50, let's just be real.
3. We don't want to overload the kube-apiserver.
But, bare metal nodes are like the Hulk, strong and powerful! 💪
So consider bumping kubeAPIQPS to 25-30 (or even more) and kubeAPIBurst to 50.
Learned something?
If you did, do a Repost. It really helps ♻️
I'm
. Follow me for Kubernetes, Devops and tech content.Before you leave, don't forget to SMILE 😁