NodeTaint applied to every Kubernetes node in a node pool. Kubernetes taints can be used together with tolerations to control how workloads are scheduled to your nodes. Node taints are permanent.
JSON representation |
---|
{
"key": string,
"value": string,
"effect": enum ( |
Fields | |
---|---|
key |
Key associated with the effect. |
value |
Value associated with the effect. |
effect |
The taint effect. |
Effect
Available taint effects.
Enums | |
---|---|
EFFECT_UNSPECIFIED |
Not set. |
NO_SCHEDULE |
Do not allow new pods to schedule onto the node unless they tolerate the taint, but allow all pods submitted to Kubelet without going through the scheduler to start, and allow all already-running pods to continue running. Enforced by the scheduler. |
PREFER_NO_SCHEDULE |
Like TaintEffectNoSchedule, but the scheduler tries not to schedule new pods onto the node, rather than prohibiting new pods from scheduling onto the node entirely. Enforced by the scheduler. |
NO_EXECUTE |
Evict any already-running pods that do not tolerate the taint. Currently enforced by NodeController. |