kubectl-evict

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2022 License: MIT Imports: 4 Imported by: 0

README ยถ

kubectl-evict

A kubectl plugin to evict pods. This plugin is good to remove a pod from your cluster or to test your PodDistruptionBudget.

๐Ÿ’ฟ Installation

$ go install github.com/stromvirvel/kubectl-evict@latest

๐Ÿ“” Usage

Evict a pod nginx:

$ kubectl evict nginx

Evict all pods defined by label app=nginx:

$ kubectl evict -l app=nginx

Evict all pods from of a deployment named nginx:

$ kubectl evict deployment/nginx

Evict all pods from node worker-1:

$ kubectl evict node/worker-1

๐Ÿ›  Developing

Create a cluster:

$ kind create cluster --config .kind/cluster.yaml

Then deploy nginx with a Deployment and PodDIsruptionBudget:

$ kubectl apply -f .kind/deployment.yaml -f .kind/pdb.yaml

๐Ÿ“ LICENSE

MIT

Documentation ยถ

The Go Gopher

There is no documentation for this package.

Directories ยถ

Path Synopsis
pkg
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL