Label a resource
Adds or changes a label on any resource, here on a node
kubectl label node <node> role=worker --overwrite
- tool
- kubectl73 commands
More kubectl commands
-
kubectl taint nodes <node> key=value:NoSchedulePods without a matching toleration will not be scheduled on this node
-
kubectl taint nodes <node> key=value:NoSchedule-Removes the taint; all the magic is in the dash at the end
-
kubectl set image deployment/<name> <container>=image:tag -n <ns>Starts a rolling update with a new container image, no YAML editing
-
kubectl rollout history deployment/<name> -n <ns>Lists all revisions with the change cause; the cause is filled only with --record or an annotation
-
kubectl rollout restart deployment/<name> -n <ns>Restarts pods one by one without downtime and without changing the spec