this post was submitted on 24 May 2024
391 points (98.0% liked)

Programmer Humor

32472 readers
949 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 31 points 5 months ago (11 children)

Good luck connecting to each of the 36 pods and grepping the file over and over again

[–] [email protected] 6 points 5 months ago

Stern has been around for ever. You could also just use a shared label selector with kubectl logs and then grep from there. You make it sound difficult if not impossible, but it's not. Combine it with egrep and you can pretty much do anything you want right there on the CLI

load more comments (10 replies)