trilioData / tvk-plugins

kubectl plugins for logcollector and preflight checks tools
Other
2 stars 8 forks source link

:seedling: TK-4939 Preflight Plugin : Add Support for Pod Scheduling #112

Closed prasad-trilio closed 2 years ago

prasad-trilio commented 2 years ago

Added support for scheduling of preflight pods.

One CLI flag added - node-selector - Allows user to input multiple labels for node selection to schedule pods on a particular set of nodes.

Pod scheduling supports node selection, pod affinity/anti-affinity, node affinity and taints and tolerations. Except node-selector flag other pod scheduling options currently do not have CLI flag support. Input for these pod scheduling options must be given through the config file. This is because there are a lot of options to specify in affinity and tolerations. Hence, input only through config file is supported.