Krew plugin to restart Kubernetes Nodes sequentially and gracefully
kubectl-node-restart
is a kubectl plugin that sequentially and gracefully performs a rolling restart of Nodes within a Kubernetes cluster
krew
using instructions herekubectl krew update
kubectl krew install node-restart
kubectl node-restart [--context cluster] all
kubectl node-restart --selector node-role.kubernetes.io/master
kubectl node-restart all --command "echo 'hello world'"
kubectl node-restart all --dry-run
kubectl node-restart all --force
kubectl node-restart all --sleep 120
kubectl node-restart all --registry myregistry.local/library/alpine:3.9