dashboard icon indicating copy to clipboard operation
dashboard copied to clipboard

Feature/implementation support request: cluster graph integration

Open WillemMali opened this issue 7 years ago • 12 comments

I deploy K8s/dashboard via kops, and I would like to integrate kubernetes-ui/graph into the dashboard. It would show up on the condition that cluster-insight is running.

Is there currently a plugin/component system for dashboard? Could someone who has architectural overview of dashboard help me make a rough outline of the work that has to be done to integrate the cluster graph into dashboard?

WillemMali avatar Jun 02 '17 14:06 WillemMali

There's no extension mechanism at the moment. So this is all do-it-yourself. I think, though, this is the right moment to start thinking about the extensions framework for UI for real.

bryk avatar Jun 02 '17 19:06 bryk

@floreks @maciaszczykm @cheld WDYT of doing this via one-off compile time hardcoding versus extensions framework?

bryk avatar Jun 02 '17 19:06 bryk

The scope plugin uses an Iframe. https://github.com/kubernetes/dashboard/pull/1949

The helm plugin we are thinking to integrate directly. Not sure about the best approach

In addition @floreks is thinking about a global settings page, backed by a config map to enable/disable plugins - like in chrome

cheld avatar Jun 02 '17 19:06 cheld

Yeah. So there's a lot of these things appearing recently. I expect to see more. We could tackle this problem in a generic way to help everyone in one sweep. This is a large project, though.

bryk avatar Jun 02 '17 19:06 bryk

It would be nice to have some extensions framework, but there are many things to consider. We need to discuss that first and think how to provide such a mechanism in a generic and dynamic way that will not require direct dashboard changes.

What I'm working on is not a plugin mechanism but integrations framework for our backend. This means that still we will need to introduce all integrations related code upstream. It will be just easier to integrate with dashboard.

floreks avatar Jun 05 '17 07:06 floreks

Do you have any designs for the integrations framework already? Can we talk about this? :)

bryk avatar Jun 05 '17 17:06 bryk

It's still an early sketch. I've been preparing other parts of backend for such framework. I want to minimize work needed to introduce new integrations later on so API still changes. Also I need to introduce some kind of storage provider with storage sync that will keep config up to date and integrate that with integrations manager.

There are many things to consider so I'm trying not to rush anything. It would be nice to discuss it. We can do that tomorrow.

floreks avatar Jun 05 '17 18:06 floreks

Hi, just checking in on the extension framework/cluster graph integration, is there anything I could do to help further this integration?

@floreks, could you perhaps write a roadmap of what you think the issues to discuss are before implementing a extension framework?

WillemMali avatar Jun 12 '17 09:06 WillemMali

First part can be seen in https://github.com/kubernetes/dashboard/pull/2017 pull request. I still need to clean up some code but overall structure is already there. Right now I don't have clear roadmap. For sure after this part I will be working on some storage sync to be able to save per user config.

Unfortunately right now I don't see any tasks that could be done in parallel. Base part has to finished first and then new integrations i.e. prometheus for metrics can be added.

floreks avatar Jun 12 '17 10:06 floreks

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or @fejta. /lifecycle stale

fejta-bot avatar Dec 27 '17 10:12 fejta-bot

Stale issues rot after 30d of inactivity. Mark the issue as fresh with /remove-lifecycle rotten. Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /lifecycle rotten /remove-lifecycle stale

fejta-bot avatar Jan 26 '18 10:01 fejta-bot

Rotten issues close after 30d of inactivity. Reopen the issue with /reopen. Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /close

fejta-bot avatar Feb 25 '18 11:02 fejta-bot