kubectl-restart icon indicating copy to clipboard operation
kubectl-restart copied to clipboard

A kubectl plugin to restart a pod

kubectl-restart

A kubectl plugin to restart a pod. This deletes the original pod and creates a new one using it's template. Consequently, the pod name changes.

Installation

mkdir -p ~/.kube/plugins/
git clone https://github.com/achanda/kubectl-restart.git ~/.kube/plugins/restart

Usage

kubectl plugin restart <pod_name>