Skip to content

Files

12 lines (11 loc) · 562 Bytes

multi-arch-schedule-default-toleration-namespace.adoc

File metadata and controls

12 lines (11 loc) · 562 Bytes
Creating a default toleration in a namespace

When a node or machine set has a taint, only workloads that tolerate that taint can be scheduled. You can annotate a namespace so all of the workloads get the same default toleration by running the following command:

Example default toleration set on a namespace
$ oc annotate namespace my-namespace \
  'scheduler.alpha.kubernetes.io/defaultTolerations'='[{"operator": "Exists", "effect": "NoSchedule", "key": "multiarch.openshift.io/arch"}]'