Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mauri870/kubectl-renew

Kubectl plugin to renew(restart, start fresh) a single or all pods in a deployment, rc or daemonset
https://github.com/mauri870/kubectl-renew

deployment kubectl kubectl-plugins pod restart

Last synced: about 1 month ago
JSON representation

Kubectl plugin to renew(restart, start fresh) a single or all pods in a deployment, rc or daemonset

Awesome Lists containing this project

README

        

# kubectl renew

> NOTE: for kubectl > 1.15 just use `kubectl rollout restart` instead.

This is a simple kubectl plugin to renew(restart, start fresh) a single pod or all pods in a given deployment/daemonset/rc.

Kubectl by default has no easy way to restart pods, you need to either update the resource spec, scale it down and up again or delete the pods manually.

## Installation

You need a shell (sh for instance), kubectl and jq.

```sh
make install
make uninstall
```

By default it will be installed at `/usr/local/bin`, you can customize the installation prefix with `PREFIX=/usr make install`.

## Usage

```sh
kubectl renew pod|deployment|daemonset|rc NAME
```