Replies: 1 comment
-
@MTRNord The default seems to be 110 indeed. This stack overflow explains how to do it https://stackoverflow.com/questions/65894616/how-do-you-increase-maximum-pods-per-node-in-k3s. Basically, for this project, you need to create a PR that: 1/ Create a 2/ Change, the k3s config, in https://github.com/kube-hetzner/terraform-hcloud-kube-hetzner/blob/master/init.tf#L18, https://github.com/kube-hetzner/terraform-hcloud-kube-hetzner/blob/master/control_planes.tf#L60, and https://github.com/kube-hetzner/terraform-hcloud-kube-hetzner/blob/master/agents.tf#L55 to pass them the 3/ Finally, make sure the above logic is only applied based on a new variable, that ideally would contain the kubeletConfig info. And would support any options, not only maxPods. See https://kubernetes.io/docs/reference/config-api/kubelet-config.v1beta1/, as to make this as flexible as possible. But that last part is a plus, if you want to just create a variable with with maxPods and just test for it to apply the new config, it would work too. |
Beta Was this translation helpful? Give feedback.
-
Hi, I plan to migrate my existing cluster in whole to this setup. I currently have 231 pods running, which is more than the default pod limit. To up this one usually adds
--max-pods
to the kubelet. How would I do this with this setup to be able to run all the pods? :)Beta Was this translation helpful? Give feedback.
All reactions