DEV Community

Malik Benkirane
Malik Benkirane

Posted on

3 2

Kubernetes events aware?

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)

Top comments (0)

Image of AssemblyAI

Automatic Speech Recognition with AssemblyAI

Experience near-human accuracy, low-latency performance, and advanced Speech AI capabilities with AssemblyAI's Speech-to-Text API. Sign up today and get $50 in API credit. No credit card required.

Try the API

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay