Skip to content

GitLab Next

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 42,961
    • Issues 42,961
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1,382
    • Merge requests 1,382
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.org
  • GitLabGitLab
  • Issues
  • #4752
Closed
Open
Created Jan 31, 2018 by Joshua Lambert@joshlambertMaintainer

Kubernetes Pod Logs

A common need to utilize the Kubernetes dashboard is to review pod logs. This can be used to debug why a pod is restarting, failing to start, or check in on its health or activity.

We can provide this experience directly within GitLab, for the cluster that is integrated.

I have proposed 2 phases of the MVC. We should get the initial MVC submitted and reviewed as an MR, but it would be ideal if we could continue on and get MVC.2 also finished in the same release. Without support for multi-container pods, a lot of users will see errors when trying to use it.

MVC Proposal

  • The Pod log screen can be a dedicated screen to show the logs. An example of kubectl's view is below.
  • Entrypoint would be from Deploy Boards, once pod tracking ships.
  • For the absolute MVC, we would only support pods with a single container.
  • For this first release, not required to do a live view of the logs. Page reload will refresh the logs.
  • We should try to load a healthy amount of log data, since we will not support pagination.

Screen_Shot_2018-03-27_at_9.05.17_PM

MVC.2 Proposal

  • Retrieve the list of containers within the selected pod. Show a dropdown populated with that list. Automatically select and display the logs for the first alphabetical container.
  • Add a refresh button to refresh the logs.

Future pod log enhancements

  • Show previous pod logs (i.e. if the pod is crash looping, retrieve the now dead pod logs)
  • Streaming pod logs (e.g. tail -f)
  • Pagination of pod logs

Design

Design specs: https://gitlab-org.gitlab.io/gitlab-design/hosted/hazel/ee%234752-kubernetes-pod-logs-spec-previews/

MVC

Deployment board
  • The tooltip shows up when the pod box is on hover.
  • Then, the style of pod box will change to:
  • Background color --> #75D09B
  • Border color --> #1AAA55
Pod logs screen
  • The pod name in bold style displays after "Pod logs from" in the header.
  • It has a Refresh button in the header, so users can refresh it manually.
  • Do not need the time span footer for this MVC.
Deployment board Pod logs screen
01-entry-point 02-pod-logs

MVC.2

  • It has the dropdowns in the header, so users can select the containers.
  • The width of dropdown is 360px since the containers sometimes have the long names.
  • It has timespan of the logs on the bottom of the logs frame. (Optional, nice to have.)

pod-logs

Design spec

https://gitlab-org.gitlab.io/gitlab-design/hosted/hazel/ee%234752-kubernetes-pod-logs-spec-previews/

Edited May 16, 2018 by Hazel Yang
Assignee
Assign to
Time tracking