Skip to content

Instantly share code, notes, and snippets.

View dpmerron-ltd's full-sized avatar

Dan Merron dpmerron-ltd

View GitHub Profile
@dpmerron-ltd
dpmerron-ltd / kubectl-cmd
Created April 27, 2019 22:00
kubectl-cmd
#!/usr/bin/env bash
for i in $(kubectl get pods -n $1 --no-headers | awk '{print $1}' | grep $2); do
echo -e "\n$i\n"
kubectl exec -n $1 $i $3;
done