dashboard icon indicating copy to clipboard operation
dashboard copied to clipboard

Ability to view ResourceBindings on Karmada Dashboard

Open zclyne opened this issue 5 months ago • 14 comments

What would you like to be added: Ability to view ResourceBindings on the dashboard

Why is this needed: Our team uses Karmada to perform multi-cluster scheduling of batch ML training jobs. There are various scenarios where a job fails to get started, including:

  • Lack of hardware resource
  • Taints on member clusters
  • Job creation request is rejected by the validating webhook
  • ...

Being able to view ResourceBindings on the dashboard would provide great observability for debugging such issues.

I'm happy to contribute a bit if you find this enhancement useful. Thanks!

zclyne avatar Jul 11 '25 19:07 zclyne

view ResourceBindings will enrich the experience of control-plane for karmada, I think it will be a great feature for karmada dashboard.

warjiang avatar Jul 13 '25 08:07 warjiang

I'm happy to contribute a bit if you find this enhancement useful. Thanks!

Looking forward for you contribution, and I'm willing to provide any help to implementation of the feature. Can you provide more detailed document, including ux design、api design etc. will be ok.

warjiang avatar Jul 13 '25 09:07 warjiang

For sure. Thanks @warjiang. What's the UX design tool that the community use for this project? I'm a bit new to frontend and would need to familiarize myself with the common tools. Thanks

zclyne avatar Jul 13 '25 13:07 zclyne

For sure. Thanks @warjiang. What's the UX design tool that the community use for this project? I'm a bit new to frontend and would need to familiarize myself with the common tools. Thanks

Prefer to use figma, the figma file link is => https://www.figma.com/design/Bhr3HPgEpdpFJ6bDZyCwGj/karmada-dashboard?t=TRS9nYAUQNIfT05G-0

warjiang avatar Jul 13 '25 16:07 warjiang

Thanks @warjiang . I just requested access.

zclyne avatar Jul 14 '25 15:07 zclyne

I am not able to start the backend api by following the DEVELOPMENT.md file. There are multiple issues:

  1. The hack/local-up-armada.sh file is no longer available. As a workaround I used the hack/local-up-karmada.sh file from the karmada repo to spin up the karmada cluster for testing.
  2. I got "Could not init karmada in-cluster client" err="specifying a root certificates file with the insecure flag is not allowed" error when I tried to execute the output/bin/darwin/arm64/karmada-dashboard-api binary. The error was reported by init.go:239. The entire command I used was:
_output/bin/darwin/arm64/karmada-dashboard-api \
  --karmada-kubeconfig=/Users/<my-username>/.kube/karmada.config \
  --karmada-context=karmada-apiserver \
  --skip-karmada-apiserver-tls-verify \
  --kubeconfig=/Users/<my-username>/.kube/karmada.config \
  --context=karmada-host \
  --insecure-port=8000

Could you please provide any guidance about the two issues I mentioned above? Thanks! @warjiang

zclyne avatar Jul 15 '25 01:07 zclyne

The hack/local-up-armada.sh file is no longer available. As a workaround I used the hack/local-up-karmada.sh file from the karmada repo to spin up the karmada cluster for testing.

yes, you're right, we prepared hack/local-up-karmada.sh in karmada-dashboard repo at first, but then we realized that it will be hard to maintain the scripts for local testing environment, so we decided to rm related scripts in karmada-dashboard repo, and re-use the hack/local-up-karmada.sh in karmada repo. related PR: https://github.com/karmada-io/dashboard/pull/162/files

so the DEVELOPMENT.md should be updated

I got "Could not init karmada in-cluster client" err="specifying a root certificates file with the insecure flag is not allowed" error when I tried to execute the output/bin/darwin/arm64/karmada-dashboard-api binary. The error was reported by init.go:239. The entire command I used was:

I think you can rm the conflict option --skip-karmada-apiserver-tls-verify

warjiang avatar Jul 15 '25 02:07 warjiang

I add a new issue to track the outdated development.md filed

https://github.com/karmada-io/dashboard/issues/228

warjiang avatar Jul 15 '25 02:07 warjiang

Thank you very much for the prompt assistance! May I take #228 as my first contribution? Thanks

zclyne avatar Jul 15 '25 02:07 zclyne

It's ok, looking forward for your contribution ~

warjiang avatar Jul 15 '25 02:07 warjiang

hi, any process about this feature or need extra discussion about this? btw we're working on integration with LLM to enhance the multi-cluster ops, maybe we can have further discussion about that.

warjiang avatar Jul 30 '25 16:07 warjiang

Hi @warjiang , apologies that I don't have spare time to look into this yet. I'm also not very familiar with figma and other toolings the community uses for the frontend and would need some time to pick them up.. However if there is anything I can be helping with on the backend, I would be more than glad to contribute. Thank you!

zclyne avatar Aug 01 '25 00:08 zclyne

Hi @warjiang , apologies that I don't have spare time to look into this yet. I'm also not very familiar with figma and other toolings the community uses for the frontend and would need some time to pick them up.. However if there is anything I can be helping with on the backend, I would be more than glad to contribute. Thank you!

It doesn't matter, maybe I can provide a basic design of resourcebing on control-plane, and then have a deep discussion about that before make any development.

warjiang avatar Aug 01 '25 09:08 warjiang

That would be great. I'm happy to join the conversation and help out with any implementation stuff. Thank you!

zclyne avatar Aug 02 '25 02:08 zclyne