https://pulumi.com logo
Title
n

nice-lizard-13594

06/02/2022, 10:49 AM
Hey Pulumi friends, did anyone face warnings about
client-side throttling
? If yes - How did you get rid of them? I keep getting spammed with messages like this during provisioning of my cluster(s):
Diagnostics:
  pulumi:pulumi:Stack (development-localhost):
    I0602 12:31:12.623746   98885 request.go:665] Waited for 1.044442038s due to client-side throttling, not priority and fairness, request: GET:<https://127.0.0.1:6443/api/v1/namespaces/harbor>
    I0602 12:31:23.024342   98885 request.go:665] Waited for 1.019069815s due to client-side throttling, not priority and fairness, request: GET:<https://127.0.0.1:6443/api/v1/namespaces/minio>
  [..]
I found several reports to delete and/or
chown
the
~/.kube/cache
directory. This did not help for me. Any ideas?
b

billowy-army-68599

06/02/2022, 11:07 AM
@nice-lizard-13594 this is thrown by your kubernetes cluster, it's not coming from Pulumi. Pulumi is just reporting the api is throttling you
n

nice-lizard-13594

06/02/2022, 11:22 AM
Thanks @billowy-army-68599 - I understand that Pulumi is only forwarding the warning. The Kubernetes documentation about Priority and Fairness states it’s a server-side feature of
kube-apiserver
. The warning explicitly states it is client side throttling not caused by priority and fairness. So it’s not thrown by my cluster. I can’t find any reference to throttling settings for
kubectl
. Does Pulumi use the
kubectl
CLI under the hood? Or does it send requests to the Kubernetes API directly?
b

billowy-army-68599

06/02/2022, 11:26 AM
It talks directly to the API
s

sparse-park-68967

06/02/2022, 4:14 PM
You can set burst/qps settings through kube client settings: https://www.pulumi.com/registry/packages/kubernetes/api-docs/provider/#kubeclientsettings
Also supported through
PULUMI_K8S_CLIENT_BURST
and
PULUMI_K8S_CLIENT_QPS
environment variables
n

nice-lizard-13594

06/02/2022, 4:16 PM
Jeah @sparse-park-68967 that’s exactly what I was looking for. Thank you soooo much. You made my day! 🙏
s

sparse-park-68967

06/02/2022, 4:17 PM
No worries at all!