Kubernetes events aware?

Malik Benkirane - Apr 27 '21 - - Dev Community

This is a call for participation on k8s and command line shell tricks that the lovers will hate and appreciate.

#!/bin/sh -e
alias k=kubectl
for pod in $(k get pod | sed 1d | awk '{print $1}')
do k describe pod $pod | sed -n /Events:/,\$p
done
Enter fullscreen mode Exit fullscreen mode

In case you've a better a solution, let us know. (tip: Kubernetes has other ways to inspect events)

. . . . . . . . . . . . . . . . . . . . . .