Hi,
I have a remote k8s cluster as my deployment target. Skaffold is great tool for kubernetes development.
But now I can't tail log from pods in remote kubernetes cluster (this feature only work in local cluster).
So great when this feature is available
@tuananh170489 Can you explain a little how you are using Skaffold? If you are running skaffold run or skaffold deploy it is expected that you don't see logs. However, with skaffold dev you should see the logs even from a remote cluster.
To inspect logs of an already deployed application, Skaffold is probably not the correct tool to use. But there several tools out there for exactly that purpose:
kubectl logs --tail --selector my-label=my-pp@corneliusweig thank for your response.
I saw this infomation in skaffold docs
Skaffold has built-in support for tailing logs for containers deployed by Skaffold on your cluster to your local machine when running in either dev, debug or run mode
And I has got the same issue that I can't tail logs pod at remote k8s cluster
@tuananh you can use the --tail=true flag for skaffold run or skaffold debug to tail logs to your machine. this should work regardless of whether your cluster is local or remote.
@nkubala I tried with getting-started example, but not streamed log to stdout, it's stopped at Watching for changes state.
I used skaffold dev
Redirect to #3648 issue