AKS icon indicating copy to clipboard operation
AKS copied to clipboard

[BUG] Scaling from 0->X doesn't work when relying on RuntimeClass

Open lukerogers opened this issue 3 years ago • 24 comments

Describe the bug I have a windows node pool set the a minimum of 0 and max of 50 so the pool is available if a Windows workload is needed. I set the nodeSelector and tolerations in the RuntimeClass and assign it to the Windows workload. This doesn't result in a scale up event. When I apply the settings directly to a deployment, the node pool scales up as expected.

To Reproduce Steps to reproduce the behavior:

  1. Create a windows node pool that can scale to 0. Let it scale down to 0.
  2. Create the following RuntimeClass
apiVersion: node.k8s.io/v1
handler: runhcs-wcow-process
kind: RuntimeClass
metadata:
  name: windows-2019
scheduling:
  nodeSelector:
    kubernetes.io/os: windows
  tolerations:
  - effect: NoSchedule
    key: os
    operator: Equal
    value: windows
  1. Create a windows workload and assign that RuntimeClass to it. It will not scale up the node pool
  2. Delete the RuntimeClass from your workload and apply the nodeSelector and tolerations directly to the workload. The node pool will scale up.

Expected behavior The node pool should scale up based on RuntimeClass rules.

Environment (please complete the following information):

  • Kubernetes version 1.24.6

lukerogers avatar Nov 04 '22 20:11 lukerogers

Action required from @Azure/aks-pm

ghost avatar Dec 05 '22 01:12 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Dec 20 '22 06:12 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Jan 04 '23 12:01 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Jan 19 '23 12:01 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Feb 03 '23 18:02 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Feb 18 '23 18:02 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Mar 06 '23 00:03 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Mar 21 '23 06:03 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Apr 05 '23 12:04 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Apr 20 '23 18:04 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar May 06 '23 00:05 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar May 21 '23 00:05 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Jun 05 '23 06:06 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Jun 20 '23 12:06 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Jul 05 '23 12:07 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Jul 20 '23 18:07 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Aug 05 '23 00:08 ghost

Issue needing attention of @Azure/aks-leads

Issue needing attention of @Azure/aks-leads

Issue needing attention of @Azure/aks-leads

Issue needing attention of @Azure/aks-leads

Issue needing attention of @Azure/aks-leads

Issue needing attention of @Azure/aks-leads

Issue needing attention of @Azure/aks-leads

Issue needing attention of @Azure/aks-leads

Issue needing attention of @Azure/aks-leads

Issue needing attention of @Azure/aks-leads

Issue needing attention of @Azure/aks-leads

Issue needing attention of @Azure/aks-leads

Issue needing attention of @Azure/aks-leads