Skip to content

kubectl plugin to execute a command in all running pods of a resource (daemonset, deployment, statefulset, etc)

License

Notifications You must be signed in to change notification settings

jpdasma/kubectl-exec-all

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

exec-all

Overview

Run a command in all of the containers in a specific resource.

Install using krew

kubectl krew install exec-all

Usage

kubectl exec_all [-c container_name] [-p number_parallel_executions] [-n namespace] resource resource_name command

Examples

Execute "docker system prune -a -f" in all of the containers in a daemonset named docker-daemon (with mounted docker.sock)

kubectl plugin exec-all daemonset docker-daemon -- docker system prune -a -f

About

kubectl plugin to execute a command in all running pods of a resource (daemonset, deployment, statefulset, etc)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages