We should show pod logs in the UI. The design should be similar to how we have done for shell access for containers in a pod.
Keeping that consistent design, we will allow user to see logs of any container in any pod in any app.
A good example to see how it works is how rancher handles it ( https://10.234.30.4/p/local:p-n2dpr/workload/deployment:argo-cd:argo-cd-argocd-redis ) - please ping me for credentials.
In middleware, we have following endpoints of interest
The last endpoint above will allow user to download logs for a particular container. However we will be showing the user live logs which are being updated in realtime, so for that we will be using the event "kubernetes.pod_log_follow" which will allow retrieving logs in realtime and we can update them on the screen.
We should expose the options documented in the API in the UI as well which will allow user to control/configure how much of the logs he/she wants to retrieve.
If there are any concerns/issues, please let me know. Thanks