Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Remove a Taint

Remove a taint when you no longer want it to repel workloads from the nodes, such as when a maintenance window ends, when a workload no longer requires dedicated nodes, or when you finish testing. After you remove a taint, the scheduler can assign pods without a matching toleration to the node again. Remove a taint at the same level where you added it:

  • Node pool level: Remove the taint from the node pool specification. The change applies to all nodes in that pool.

  • Individual node level: Remove the taint from a single node with kubectl. The change applies only to that node.

Prerequisites: Before you begin, ensure you have the following:

  • A node pool or node with at least one taint. For more information, see Configure Taints and Tolerations.

  • kubectl installed and configured to access your cluster.

Remove a taint from a node pool

  1. In the DCD, go to Menu > Containers > Managed Kubernetes.

  2. Select a cluster from the list and go to the Node pools in Cluster tab.

  3. Select the node pool you want to update.

  4. In the Advanced settings section, go to Taints. Select the x next to each taint you want to remove.

Remove a taint from the node pool
  1. Select Edit node pool to save your changes.

To remove all taints from a node pool using the IONOS CLOUD API, set the taints array to an empty array:

Replace CLUSTER_ID, NODEPOOL_ID, YOUR_API_TOKEN, and NODE_COUNT with your values. NODE_COUNT is the current number of nodes in the node pool. The nodeCount property is required in every update request.

To remove a specific taint, send the full taints array without the taint you want to remove.

  1. In the ionoscloud_k8s_node_pool resource, delete the taints block for each taint you want to remove.

  2. Apply the configuration:

To verify that the taints are removed from the nodes in the pool, run the following command after the node pool reaches the Available state:

The TAINTS column no longer lists the removed taints.

Remove a taint from an individual node

To remove a taint, append - to the taint specification.

Note: If the taint comes from the node pool, it returns on the node the next time the node pool is updated. To remove it permanently, remove it from the node pool. For more information, see Remove a taint from a node pool.

  1. Remove the taint by key, value, and effect. If you do not know the exact value, remove it by key and effect only:

  2. Verify the taint was removed:

    If no taints remain, the output shows:

Next steps

Last updated

Was this helpful?