JAEN

Kubernetes

kubectl taint

CautionTaint nodes

kubectl taint nodes <node> key=value:NoSchedule

Reserves nodes for tolerating pods (e.g. GPU pools). Append '-' to remove a taint.

Examples

  • kubectl taint nodes gpu-1 dedicated=gpu:NoScheduleDedicate a GPU node

Syntax

kubectl taint nodes <node> key=val:Effect [key-]

Before you run it

Wrong taints leave pods unschedulable.

Related commands

The same reference, with no signal at all

Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).

Get it free on the App Store