Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spike: Explore how to fetch and view pod logs of k8s backed resources #271

Closed
2 tasks done
Tracked by #113 ...
debsmita1 opened this issue Apr 19, 2023 · 4 comments
Closed
2 tasks done
Tracked by #113 ...

Comments

@debsmita1
Copy link
Member

debsmita1 commented Apr 19, 2023

Goal
Explore how to fetch pod log information of k8s-backed resources

What problem does this solve? Please describe.
On OpenShift, users have the ability to view logs which helps them troubleshoot and understand what is happening to various resources created on the cluster. We want to bring the same experience to the Backstage app.

Use cases
As a developer, I should be able to fetch pod logs of the resources and view them in the Backstage app

Acceptance criteria

  • Explore and find out a way to fetch pod logs
  • Create a story to utilize the information and view it in the app
@fmenesesg
Copy link
Collaborator

I think there are some work done on the backtage community for this topic backstage/backstage#17120
We will have to wait until the PR gets merged

@tumido
Copy link
Member

tumido commented Apr 26, 2023

@debsmita1 is this related to the topology plugin and would you like to see it implemented in there? Or do you mean this as "how to do this in general"?

@debsmita1
Copy link
Member Author

@tumido We would need this for the topology plugin (to view pod logs of the workloads on topology) and also for the tekton plugin (to view the taskrun logs which are also pod logs)

@invincibleJai
Copy link
Member

Have verified this and seems to work with the below dependency

K8s backend:
"@backstage/plugin-kubernetes-backend": "^0.11.0"

K8s frontend:
"@backstage/plugin-kubernetes": "^0.9.1",

Follow updated installation steps https://backstage.io/docs/features/kubernetes/installation

"@backstage/plugin-kubernetes" should be updated in topology plugin as well along with app and backend

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants