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

Class not found: io.kubernetes.client.openapi.models.V1Service #135

Closed
ldvy opened this issue Jul 2, 2020 · 3 comments
Closed

Class not found: io.kubernetes.client.openapi.models.V1Service #135

ldvy opened this issue Jul 2, 2020 · 3 comments

Comments

@ldvy
Copy link

ldvy commented Jul 2, 2020

Hello guys, I get the following error when trying to use the YAML file from my GitRepo to deploy to kube cluster.
image

Here is the content of my .yaml file:
image

I've already tried changing the ports, the API version to apps/v1, etc.
What seems weird to me is that no matter which line goes foirst in the file, it always shows me the same issue.
What can be causing this?

@kellycampbell
Copy link

Similar problem in #134

What version of Kubernetes are you using?

@renedare
Copy link

renedare commented Jul 9, 2020

I have the same problem running Kubernetes v1.18.3. I'm running Jenkins v2.235.1 and all my plugins are up to date.

The workaround I've found for now is to downgrade Jackson 2 API to v2.10.3 and to downgrade Snakeyaml API to v1.26.2. If those 2 plugins are updated to their respective latest versions, the error message comes back.

@ldvy
Copy link
Author

ldvy commented Jul 31, 2020

I found the root cause of this behaviour. Jackson 2 API plugin version 2.11.1 is breaking kube deployments; you can find more info by the link below:
https://issues.jenkins-ci.org/browse/JENKINS-62995

Downgrading the following plugins worked for me: Jackson 2 API v2.10.0,
Kubernetes v1.21.3,
Kubernetes Client API v4.6.3-1,
Kubernetes Continuous Deploy v2.1.2,
Kubernetes Credentials v0.5.0

As those plugins are default, you would need to find the relevant version source files in https://plugins.jenkins.io/, and upload them to your Jenkins server by going
Manage Jenkins --> Manage Plugins --> Advanced --> Upload Plugin section

@ldvy ldvy closed this as completed Jul 31, 2020
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