1 post about

Execute a command on a pod of a deployment with a single command

TL;DR kubectl exec -it $(kubectl get pods -o name | grep -m1 INSERT_DEPLOYMENT_NAME_HERE | cut -d'/' -f 2) INSERT_YOUR_COMMAND_HERE Motivation When I want to run execute a command on a pod of a deployment, I usually have to search for the name of the pod generated by a deployment (or replica controller)...
Read More