---
title: "Use Kubernetes Taints"
description: "Learn how to use Kubernetes taints and tolerations to control pod scheduling on node pools, including the --nodepool-taint option for GPU workloads."
url: https://community.exoscale.com/product/compute/containers/how-to/kubernetes-taints/
product: "Containers (SKS)"
section: product
last_updated: 2026-06-03
---
> For AI agents: the documentation index is at https://community.exoscale.com/llms.txt. Every page is available as markdown at `<page URL>index.md` or with `Accept: text/markdown`.

# Use Kubernetes Taints

Node affinity is a property of pods that attracts them to a set of nodes. Kubernetes taints, on the other hand, are the opposite: they allow a node to repel a set of pods.

You can read the [official Kubernetes documentation](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) to learn more about taints and toleration.

To associate taints on your nodepool workers, you can use the `--nodepool-taint=KEY=VALUE:EFFECT` option.

For instances use the `--nodepool-taint=type=GPU:NoSchedule` option.

After a taint is registered on a nodepool worker, only pods with [tolerations](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) will be scheduled for that worker.

Taints options can be repeated in order to register multiple taints.
