Add k8s logs view component
What does this MR do and why?
This MR closes Implement Logs view for k8s dashboard (#461014 - closed), adding logs fetching logic and logs view component.
Container specific logs will be handled separately in the scope of Add support of container specific logs for logs... (#464031 - closed)
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Screen recording: https://www.youtube.com/watch?v=8V9gyLFdxEw
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Integrate k8s cluster and assign the agent to the project (follow this guide)
- Navigate to
https://gdk.test:3443/<group-name>/<project-name>/-/environments/<environment-id>/k8s/namespace/<namespace-name>/pods/<pod-name>/logs
- To check running logs you may use the following command to create a pod that logs every second:
kubectl apply -f https://k8s.io/examples/debug/counter-pod.yaml
You can remove it later with kubectl delete pod counter
command
4. You can check the counter pod with the following URL: https://gdk.test:3443/<group-name>/<project-name>/-/environments/<environment-id>/k8s/namespace/default/pods/counter/logs