Not sure if this would help, since I'm using Docker, not K8, but I bet there's a similar option - when I a start a container I use a -v flag to specify to copy the logs to the server it's running on. This allows me to have a persistent log that won't just go away if I remove and restart the container.
example: -v /path/to/server/log/directory:/path/from/container/logs/directory On Wed, Oct 28, 2020 at 11:43 PM touseef <[email protected]> wrote: > Can anyone provide pointer on how do i get the logs of the containers > running in kubernetes without using Kubectl because i dont have an access > to the kubernetes cluster. > Is there any loging mechanism by which i can get the logs or stdout in the > container to jenkins ? Help would be greatly appreciated. > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/3b38d046-c55e-4e55-b9c3-7bc1d333a821n%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/3b38d046-c55e-4e55-b9c3-7bc1d333a821n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAE7w4hguR8be_JVOSwkY6hPmC1%2BBd%3D%3Do1MBznnGnqZ93UkuiRw%40mail.gmail.com.
