Skip to content

kubernetes: support pod topology spread constraints - #4230

Open
crazy-max wants to merge 1 commit into
docker:masterfrom
crazy-max:kubernetes-topology-spread
Open

crazy-max wants to merge 1 commit into
docker:masterfrom
crazy-max:kubernetes-topology-spread

Conversation

@crazy-max

@crazy-max crazy-max commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

fixes #3919

Allow builders to configure a topology key, maximum skew, scheduling policy, and label selector through driver options. Default to spreading replicas of the same builder, with shared labels enabling spreading across separate builders in the same namespace.

Validate the options and selector against the pod labels before creating the workload, and apply the constraint to Deployments and StatefulSets.

@crazy-max

Copy link
Copy Markdown
Member Author

Allow builders to configure a topology key, maximum skew, scheduling
policy, and label selector through driver options. Default to spreading
replicas of the same builder, with shared labels enabling spreading across
separate builders in the same namespace.

Validate the options and selector against the pod labels before creating
the workload, and apply the constraint to Deployments and StatefulSets.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max
crazy-max force-pushed the kubernetes-topology-spread branch from 440e1c1 to bdf454d Compare November 20, 2026 10:37
@crazy-max
crazy-max marked this pull request as ready for review November 20, 2026 10:48

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(driver/kubernetes): support pod affinity/topology spread via driver-opt or pod template ConfigMap

1 participant