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

Error: the server could not find the requested resource #55

Closed
vincent-grafana opened this issue Jun 3, 2022 · 2 comments
Closed

Error: the server could not find the requested resource #55

vincent-grafana opened this issue Jun 3, 2022 · 2 comments

Comments

@vincent-grafana
Copy link

After running the xk6-kubernetes example script add-ephemeral.js, I noticed an error on stout:

ERRO[0002] GoError: the server could not find the requested resource
running at reflect.methodValueCall (native)

The pod gets created, though. so the functionality of the script works as expected. This error just makes it seem like there's a failure somewhere...

When I try to kill (kill-pod.js) that pod created with the add-ephemeral.js script, I also get the error message. The pod does get killed.

The create-pod.js script does not produce this error message. Killing that pod (with kill-pod.js) comes back successful as well (no error message).

@javaducky
Copy link
Contributor

javaducky commented Jun 16, 2022

From another discussion, it sounds like this is due to targeting a cluster on an older version of Kubernetes. The extension requires the EphemeralContainer resource which was introduced recently (it can be enabled using a feature flag back to v1.22 AFAIK).

@vincent-grafana please confirm that we can close this issue.

@vincent-grafana
Copy link
Author

Agreed. We can close. The target cluster was on 1.17. After upgrading to 1.24, there was no error message. Thanks!

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

2 participants