Uploaded image for project: 'TrueNAS'
  1. TrueNAS
  2. NAS-109446

Show pod logs in UI

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Done (View Workflow)
    • Priority: Low
    • Resolution: Complete
    • Affects Version/s: Master - TrueNAS SCALE
    • Fix Version/s: SCALE-21.04-ALPHA.1
    • Component/s: WebUI
    • Labels:
      None

      Description

      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

      chart.release.pod_logs_choices
      
      chart.release.pod_logs

      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

        Attachments

          Attachments

            JEditor

              Activity

                People

                Assignee:
                akarpov Alex Karpov
                Reporter:
                waqar Waqar Ahmed
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: