Add taint to node

Prevent pods without matching toleration from scheduling on node

kubectl taint nodes <node> key=value:NoSchedule

tool
kubectl73 commands
tags
nodes

More kubectl commands

  • kubectl taint nodes <node> key=value:NoSchedule-

    Remove a taint by appending a dash at the end

  • kubectl set image deployment/<name> <container>=image:tag -n <ns>

    Rolling-update the container image without editing YAML

  • kubectl rollout history deployment/<name> -n <ns>

    Show all revisions with change cause (requires --record or annotations)

  • kubectl rollout restart deployment/<name> -n <ns>

    Trigger zero-downtime pod rotation without changing spec

  • kubectl create namespace <ns>

    Create a new namespace; idempotent with --dry-run=client | apply

all 73 kubectl commands