Skip to content

Extend to use attributes other than node name for selection ? #3

@senare

Description

@senare

Hi, I have a feature or maybe an improvement request !

in short i would like to be able to in addition to using the node name to select were to apply taints and labels I would be nice to be able to specify also other properties.

In my case i would like to specify 'EXTERNAL-IP' , ref

# kubectl get nodes -o wide
NAME                    STATUS   ROLES           AGE    VERSION   INTERNAL-IP    EXTERNAL-IP      OS-IMAGE             KERNEL-VERSION      CONTAINER-RUNTIME

I will add my use-case to help clarify my case !

I have a workload running and for it to function i need to whitelist the source ip, before it can connect to 'legacy' part of the infrastructure.

So this means that source ip is public IP of all the worker nodes in cluster. However when/if I add an additional node to the cluster the workload can't be allowed to run on that node before the 'EXTERNAL-IP' for the new node have been added to whitelist, and unfortunately this is a lengthy process.

So to keep this particular workload from being scheduled on new node i use labels. This ofc works as long as I can assume that for a given node-name the 'EXTERNAL-IP' is fixed.

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