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

Programmer Humor

32443 readers
1877 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] 5 points 5 months ago (1 children)

I don't know how k8s works; but if there is a way to execute just one command in a container and then exit out of it like chroot; wouldn't it be possible to just use xargs with a list of the container names?

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

yeah, just use kubectl and pipe stuff around with bash to make it work, pretty easy

load more comments (9 replies)