Override
Override

Reputation: 288

Read kuberbetes pod stdout from node.js

Does someone have a way or a library that can show how to (if possible) reading stdout and stderr from containers in Kubernetes pods?

The code will be running in a container/pod next to the source pods that it will read from.

Upvotes: -1

Views: 266

Answers (1)

coderanger
coderanger

Reputation: 54267

You would generally use the pods/log subresource. The official JS client does provide a high-level wrapper for this in the library but I don't see any specific examples of usage.

Upvotes: 2

Related Questions