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.
Remove a taint from a node pool
In the DCD, go to Menu > Containers > Managed Kubernetes.
Select a cluster from the list and go to the Node pools in Cluster tab.
Select the node pool you want to update.
In the Advanced settings section, go to Taints. Select the x next to each taint you want to remove.

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.
In the
ionoscloud_k8s_node_poolresource, delete thetaintsblock for each taint you want to remove.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.
Remove the taint by
key,value, andeffect. If you do not know the exact value, remove it bykeyandeffectonly:Verify the taint was removed:
If no taints remain, the output shows:
Next steps
Last updated
Was this helpful?