https://github.com/FingerLiu/kubectl-smart

kubectl s gp -n her.*a my
# get log for pod with name my
# (kubectl logs --tail 100 -f $(kubectl get pods | awk '/my/ {print $1;exit}'))
kubectl s l my
# exec into pod
# kubectl exec -ti my-pod-i3jx bash
kubectl s e my bash
# get deploy with name contains my
# (kubectl get deploy | grep my)
kubectl s g deploy my