Skip to content

Enforce same node when turning K8s Scheduler on for Workflow Pods #201

@BerndFarkaDyna

Description

@BerndFarkaDyna

What would you like added?

As described here: #111 (comment), a workflow pod can currently be placed on any Node of the given K8s cluster. I want to enforce having the pod scheduled via K8s Schedule on the same node.

Why is this needed?

Currently, there are 2 Options with various downsides:

I suggest extending the "useK8sScheduler" option to generate podAfinities into this functionality. It should be rather straightforward to force the K8s Scheduler the pod on the same Node. The benefit is that if there are not enough resources on this node (at the moment of pod creation), the pod will go into a Pending state and will not fail.

Additional context

This could be easily achieved via a PodAfinity on the "hostname" label, which should be available by default on all K8s Distributions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions