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

Kubernetes upgrade from 1.24 to 1.25 broke search and cron jobs tab under workload section #8649

Closed
skolagsa opened this issue Jan 26, 2024 · 4 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@skolagsa
Copy link

What happened?

Kubernetes upgrade from 1.24 to 1.25 broke search and cron jobs tab under workload section, getting below errors when we click
On dashboard:

  1. Not Found (404) the server could not find the requested resource
  2. Unknown Error No error data available.

In dasboard deployment logs:
2024/01/26 15:02:19 received 1 resources from sidecar instead of 2
2024/01/26 15:02:19 received 1 resources from sidecar instead of 2
2024/01/26 15:02:19 received 1 resources from sidecar instead of 2
2024/01/26 15:02:19 received 1 resources from sidecar instead of 2
2024/01/26 15:02:19 Skipping metric because of error: Metric label not set.
2024/01/26 15:02:19 Skipping metric because of error: Metric label not set.

What did you expect to happen?

Display results

How can we reproduce it (as minimally and precisely as possible)?

with Dashboard v2.6.0+0.g8cf47b594 on Server Version: version.Info{Major:"1", Minor:"25+", GitVersion:"v1.25.16-eks-8cb36c9", GitCommit:"3a3ea80e673d7867f47bdfbccd4ece7cb5f4a83a", GitTreeState:"clean", BuildDate:"2023-11-22T21:53:22Z", GoVersion:"go1.20.10", Compiler:"gc", Platform:"linux/amd64"}

Anything else we need to know?

No response

What browsers are you seeing the problem on?

Chrome

Kubernetes Dashboard version

Dashboard v2.6.0+0.g8cf47b594

Kubernetes version

Server Version: version.Info{Major:"1", Minor:"25+", GitVersion:"v1.25.16-eks-8cb36c9", GitCommit:"3a3ea80e673d7867f47bdfbccd4ece7cb5f4a83a", GitTreeState:"clean", BuildDate:"2023-11-22T21:53:22Z", GoVersion:"go1.20.10", Compiler:"gc", Platform:"linux/amd64"}

Dev environment

No response

@skolagsa skolagsa added the kind/bug Categorizes issue or PR as related to a bug. label Jan 26, 2024
@skolagsa
Copy link
Author

Snapshot-workload-api-calls-error
Snapshot-workload-search-error

@ZimmSebas
Copy link

ZimmSebas commented Jan 26, 2024

It is horribly documented (because supposedly is Kubernetes 1.19+ compatible), but I fixed this issue by upgrading Dashboard to 2.7.

Kubernetes 1.25 deprecates the cronjob endpoint batch/v1beta1 in favor of batch/v1, and it seems Dashboard 2.6 was using that endpoint to check all cronjobs. Things like EKS insights let you know about it, but you can also check if something is using that by using kubectl and grep.

That said, there's an ongoing issue (that keeps on 1.26 and 1.27, and hopefully it's fixed on dashboard 3.0+), see this

@sellers
Copy link

sellers commented Feb 21, 2024

I believe this is still a problem with 2.7 and a version of K8s 1.25+. 3.0.0 is still alpha and so I consider this still a broken feature.

See #7717 for more details.

@maciaszczykm
Copy link
Member

Can you retry with https://github.com/kubernetes/dashboard/releases/tag/kubernetes-dashboard-7.0.0? We didn't encounter this issue while testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

4 participants