kubernetes_node_taint

Node affinity is a property of Pods that attracts them to a set of nodes (either as a preference or a hard requirement). Taints are the opposite -- they allow a node to repel a set of pods.

Example Usage

resource "kubernetes_node_taint" "example" {
  metadata {
    name = "my-node.my-cluster.k8s.local"
  }
  taint {
    key    = "node-role.kubernetes.io/example"
    value  = "true"
    effect = "NoSchedule"
  }
}

Argument Reference

The following arguments are supported:

Nested Blocks

metadata

Arguments

taint

Arguments

Import

This resource does not support the import command. As this resource operates on Kubernetes resources that already exist, creating the resource is equivalent to importing it.