Annotate resource kubectl
Set or update an annotation; --overwrite replaces existing value
kubectl annotate pod <pod> -n <ns> key=value --overwrite
more kubectl
all 73 commands →
Label resource
kubectl label node <node> role=worker --overwrite
Add taint to node
kubectl taint nodes <node> key=value:NoSchedule
Remove taint from node
kubectl taint nodes <node> key=value:NoSchedule-
Set image on deployment
kubectl set image deployment/<name> <container>=image:tag -n <ns>
List rollout history
kubectl rollout history deployment/<name> -n <ns>