This message was deleted.
# rke2
a
This message was deleted.
c
Sounds like you didn't set requests and limits properly. Rke2 doesn't use a custom scheduler. The Kubernetes scheduler will just put pods wherever they fit based on the requests and limits with respect to the node resources, it does not actually look at realtime utilization.
p
I didnt do any requests or limit. I just guessed kubes would want to balance out by itself either ram or pods, or both. (its not doing either on my cluster)
c
lol no it absolutely will not
p
🥲 well damn
Cuz like apart from my outlier node you can see that the ram usage is rather balanced
c
You need to explicitly tell it what resources should be available to your workloads, and it will schedule to nodes based on that.
It will not rebalance after the fact either, for that you can look at the descheduler project
p
No i don't necesiraly look for re-balancing, but at least stop scheduling new workloads on the currently most used node 🥲
The reason the node went down (showing on the graph) is because a new pod was scheduled on it, causing memory constraint It had 4 others nodes it couldve gone to, but didnt
c
yeah but you didn’t tell it that it had memory constraints. the scheduler does NOT look at metrics at all when scheduling. It just looks at node resources, and compares them to the pod requests/limits