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

Getting failed to get k8s object, cause: failed to get k8s resulting object error cause: apiservices.apiregistration.k8s.io "v1beta1.external.metrics.k8s.io" not found #301

Open
aniket-searce opened this issue Mar 24, 2023 · 5 comments

Comments

@aniket-searce
Copy link

Description

Hi there,
We have deployed the "Helm Dashboard" on GCP's Cloud Run Service, and we are connecting to our Auto-Pilot GKE Cluster
through it, Dashboard is getting connected successfully, able to see the list of Helm Charts, but though the cloud run configurations like CPU and Memory are not getting utilised much still facing performance issue, and when tried to open any of the Helm Charts getting below error message:-
"failed to get k8s object, cause: failed to get k8s resulting object, cause: apiservices.apiregistration.k8s.io "v1beta1.external.metrics.k8s.io" not found"

Screenshots

image

Additional information

No response

@undera
Copy link
Collaborator

undera commented Mar 24, 2023

Hello,
From your explanation, I did not understood what is "CPU and Memory are not getting utilised much" and how it relates to Helm Dashboard. Helm Dashboard has nothing to do with monitoring.

As for the error message, looks like some resource in your chart causes problems with retrieving its details from k8s. Current code of dashboard fails to display all the resources when one failed to retrieve the info. So I'll make it to say that gracefully. It will become a part of next release. Then, you will be able to tell resource is problematic.

undera added a commit that referenced this issue Mar 24, 2023
@aniket-searce
Copy link
Author

aniket-searce commented Mar 24, 2023 via email

@undera
Copy link
Collaborator

undera commented Mar 24, 2023

It's hard to diagnose the exact reason for slowness. It would depend on performance of each request to Cloud Run, and also on the amount of the charts you have.

One of the workarounds is to limit the scope of namespaces via -n argument.

@SGudbrandsson
Copy link

@undera is it possible to analyse this somehow on our end?
How do you debug UX in the app?

@undera
Copy link
Collaborator

undera commented Mar 28, 2023

The application is simple backend and JS frontend. You can open Chrome Developer tools' Network tab and investigate the timings of various XHR requests there. The one the would look the bulkiest - is likely to be a problem. Or there will be a lot of small requests in sequence that take time to load.

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

No branches or pull requests

3 participants