GithubHelp home page GithubHelp logo

Comments (2)

invincibleJai avatar invincibleJai commented on June 18, 2024

Creating stories for #58

Feel free to update as needed

cc @serenamarie125 @rtaniwa @gorkem @spadgett

from backstage-plugins.

divyanshiGupta avatar divyanshiGupta commented on June 18, 2024

K8s plugin can be used to get the entity's resources from a cluster for the topology plugin. Currently there is only support for listing the resources and instead of watching the resources for updates, polling is done at a set interval.

Currently there is no need of a separate backend as we can use the k8s plugin api to consume the cluster resources.

Steps to use k8s plugin api to get the service objects in a separate plugin:

Note:
K8s plugin identifies if the provided entity has k8s resources and if yes from which namespace it should get the resources based on the following annotations added to the entity's catalog-info.yaml
annotations: 'backstage.io/kubernetes-id': dice-roller 'backstage.io/kubernetes-namespace': dice-space
For k8s plugin to get the desired entity's k8s resources the following label should be added to the resources
'backstage.io/kubernetes-id': <BACKSTAGE_ENTITY_NAME>

A custom label selector can also be added which will then be used by Backstage to find the resources. The label selector takes precedence over the id annotation.
backstage.io/kubernetes-label-selector': 'app=my-app,component=front-end

In order to use k8s plugin to get the resources for Topology view, the above annotations/labels should be in place.

cc: @serenamarie125 @christophe-f

from backstage-plugins.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.