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 and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store