Is there a way to log container defined in ResourceTemplate? #7010
-
Hi there, Currently I am trying to building pipeline with argo and kubeflow operator. As part of the workflow, I defined the training job in resourcetemaplate.
It works, but in Argo UI, it can only log the container of that "argo container", which looks like below:
However, it does not support the log from pytorchjob container. I am curious if I missed something, or argo does not support this feature for now? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
TFJob is a custom resource so I don't think logs are available besides the main container log that basically watches for the resource status. I'd suggest using a sidecar to collect your logs from worker/master pods and inject the log to a separate container/step so that you can see via the UI. Other than that, The current solution for this is through a sidecar, e.g. example mentioned in #6910 (comment)
|
Beta Was this translation helpful? Give feedback.
TFJob is a custom resource so I don't think logs are available besides the main container log that basically watches for the resource status. I'd suggest using a sidecar to collect your logs from worker/master pods and inject the log to a separate container/step so that you can see via the UI. Other than that,
kubectl
is the easiest way to access the logs.The current solution for this is through a sidecar, e.g. example mentioned in #6910 (comment)