SysbeeTech / kubedeploy

Kubedeploy
https://kubedeploy.app/
Apache License 2.0
5 stars 2 forks source link

avoidNodeLabels #35

Open btoic opened 9 months ago

btoic commented 9 months ago

Add value configuration for avoiding nodes with specific lables, in essence option to acheve oposite effect to nodeSelector.

Example use case with current setup:

  affinity:
    nodeAffinity:
      requiredDuringSchedulingIgnoredDuringExecution:
        nodeSelectorTerms:
          - matchExpressions:
            - key: eks.amazonaws.com/compute-type
              operator: NotIn
              values:
                - fargate

Should be possible to reduce reduce to:

avoidNodeLabels:
  eks.amazonaws.com/compute-type: fargate