AKS nodes are not autoscaled before scheduling on ACI virtual nodes #1571
-
Hello all, I am pretty new to Kubernetes and I am seeing some rather interesting autoscaling behaviour that involves AKS nodes, virtual kubelet and KEDA. I am not sure which is the best repository this issue would lie in but I thought KEDA would be a good start for my issue. Here is the situation:
The problem is that the user nodepool scaling does not happen and the pods are scheduled directly onto the virtual nodes skipping the user nodepool autoscaling.
How can I get more information from my cluster (or KEDA) on why the scale-up of the user nodes wouldn't happen before virtual nodes are scheduled? Thank you all. Dogu AKS, KEDA, Virtual Kubelet |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Happy to help but think this is more of an AKS question. KEDA basically scales out the application by scheduling them, but then it's up to the Kubernetes scheduler to decide on what node to run them. This is happening because the user nodes are not spinning up fast enough which means the workloads will flow over to Azure Container Instances through Virtual Nodes. Once the user nodes catch up, all future workloads will run there but I don't think Kubernetes will reschedule the Virtual Node pods back inside the cluster (because it doesn't know it's running outside of the cluster). Does this make sense to you? |
Beta Was this translation helpful? Give feedback.
Happy to help but think this is more of an AKS question.
KEDA basically scales out the application by scheduling them, but then it's up to the Kubernetes scheduler to decide on what node to run them.
This is happening because the user nodes are not spinning up fast enough which means the workloads will flow over to Azure Container Instances through Virtual Nodes. Once the user nodes catch up, all future workloads will run there but I don't think Kubernetes will reschedule the Virtual Node pods back inside the cluster (because it doesn't know it's running outside of the cluster).
Does this make sense to you?