nodeSelector
for scheduling pods on specific nodes. This is a simple way to control where pods are scheduled by adding a key-value pair to a chart or manifest specification.
There are generally three type on nodes in a cluster: main, worker, and GPU.
node-role.kubernetes.io/control-plane:NoSchedule
. This prevents any non-essential cluster workloads from being scheduled.
If the main node has sufficient resources to handle additional workloads or the installation environment is constrained by the number of available nodes, this taint can be removed:
worker
as described in the next section.
Allowing workloads to be scheduled on the main node is at the discretion of the cluster admin. This will not negatively affect cluster performance in a low-mid level operations.
worker
by executing the following command from a main (control-plane) node:
gpu
by executing the following from the main (control-plane) node:
nodeSelector: key:value
for pods to schedule.
Example for worker node only:
nodeSelector
can include two node labels.
key:value
are designated for nodeSelector
, then BOTH labels MUST be present on the node. Only use the following example if the true intent is to specifically limit pods to a certain node.