[Help] Is there a way to set node/pod status update frequency for kwok running outside a cluster

Hi folks! first time post in this community, hope this is the right place to ask questions. (Plz lemme know if it is not, sry)

I have a K8s cluster running on its own, and I added some nodes/pods with labels and annotations so kwok will take care of them. Kwok is its own process running on the same host independently. Everything works well at first.

However I’m simulating 6k nodes and 50k pods, thus at certain point, it seems the API server is overloaded and the whole cluster got degraded.

Is there a way to set node/pod status update frequency for kwok running outside a cluster? Per my understanding, Kwok will send heartbeats and status updates for nodes and pods to API server. How can I tune this frequency? If there is no direct solution, can you point to me where I can hard code it in the source code so I can build my own version

thank you very very much!

I have not played around with kwok but just checking if you already asked here? kubernetes-sigs/kwok · Discussions · GitHub

or do deep dive at source code GitHub - kubernetes-sigs/kwok: Kubernetes WithOut Kubelet - Simulates thousands of Nodes and Clusters.

2 Likes

I did some source code diving but couldn’t find what Im looking for…
was hoping community has better answers