Skip to content

Commit

Permalink
docs: add information about PreferNoSchedule taint (#465)
Browse files Browse the repository at this point in the history
This is a useful taint operators can make use of.
  • Loading branch information
LukeRepko authored Oct 18, 2024
1 parent 01ef975 commit ac78732
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/adding-new-node.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,22 @@ Once step 3 competes succesfully, validate that the node is up and running in th
kubectl get nodes | grep computegpu001.p40.example.com
```

### PreferNoSchedule Taint

`PreferNoSchedule` is a preference or "soft" version of `NoSchedule`. The
control plane will try to avoid placing a Pod that does not tolerate the taint
on the node, but it is not guaranteed. This is useful if you want to herd
pods away from specific nodes without preventing them from being scheduled
on entirely. For example, tainting compute nodes is generally recommended so
there is less opportunity for competition of system resources between local
pods and the Nova VMs therein.

!!! tip "Setting this is a matter of architerural preference:"

```shell
kubectl taint nodes computegpu001.p40.example.com key1=value1:PreferNoSchedule
```

## Adding the node in openstack

Once the node is added in k8s cluster, adding the node to openstack service is simply a matter of labeling the node with the right
Expand Down

0 comments on commit ac78732

Please sign in to comment.