-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent pod distrbution when using minDomains
of Topology Spread Constraints when testing between 3 AZs and 2 AZs
#7585
Comments
I suspect your NodePools are discovering three different AZs via subnet selectors. Due to this, Karpenter is aware of three but knows that you've restricted your NodePool to only two. Since it can't launch another node in the AZ that its aware of, but has no NodePool for, it doesn't. To make Karpenter unaware of the third AZ, you'll need to update your subnet seletor, or tags on the subnets so that Karpenter doesn't discover it. |
Still facing the same issue. Emitted events show the following:
This is the contents of
Output of the command:
|
Wouldn't that be incorrect behavior then, as I am explicitly telling Karpenter via |
Description
Observed Behavior:
When the Karpenter CR is limited to two zones (
us-west-2a
andus-west-2b
), an application deployed with Topology Spread Constraints withmaxSkew: 1
andminDomains: 1
is resulting in a distribution as show below:Expected Behavior:
Few things to note:
us-west-2a
,us-west-2b
,us-west-2c
) then the same settings on the application'sDeployment
work just fineminDomains
and settingwhenUnsatisfiable: ScheduleAnyway
Reproduction Steps (Please include YAML):
Karpenter CR
Inflate Deployment
Versions:
kubectl version
): v1.31.3The text was updated successfully, but these errors were encountered: