Kubernetes does not show as Cloud Provider

93 views
Skip to first unread message

J

unread,
Jan 24, 2017, 6:11:24 PM1/24/17
to Jenkins Users
Hi,

I'm using the latest version of Jenkins (2.32) and the Kubernetes plugin (0.10). I've tried re-installing the plugin a few times. My Jenkins is on an individual machine. The problem is that it never shows Kubernetes as a Cloud Provider (no cloud section in fact); while it works if the docker plugin is installed (able to see docker under a cloud section). 

Is this because my Jenkins master isn't installed on a POD itself; although I should be able to use jenkins from outside the k8s cluster. Any help appreciated. Thanks

Carlos Sanchez

unread,
Jan 25, 2017, 4:05:07 AM1/25/17
to jenkins...@googlegroups.com
It should show, maybe you are missing some plugin dependencies or have dependency conflicts.
Check the jenkins log at startup for errors.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ad406709-5572-4855-a496-38a83ae53cb6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

J

unread,
Jan 25, 2017, 12:28:31 PM1/25/17
to Jenkins Users
I did a new install and I see a bunch of warnings all failing to load modules and all citing the same major minor version error (highlighted below):


INFO: Jenkins is fully up and running

Jan 25, 2017 5:20:12 PM hudson.model.UpdateSite$Plugin getNeededDependencies

WARNING: Could not find dependency cloudbees-registration of mansion-cloud

Jan 25, 2017 5:20:12 PM hudson.model.UpdateSite$Plugin getNeededDependencies

WARNING: Could not find dependency cloudbees-registration of mansion-cloud

Jan 25, 2017 5:20:14 PM hudson.model.UpdateSite$Plugin getNeededDependencies

WARNING: Could not find dependency cloudbees-registration of mansion-cloud

Jan 25, 2017 5:20:14 PM hudson.model.UpdateSite$Plugin getNeededDependencies

WARNING: Could not find dependency cloudbees-registration of mansion-cloud

Jan 25, 2017 5:20:22 PM hudson.model.UpdateCenter$DownloadJob run

INFO: Starting the installation of Kubernetes plugin on behalf of admin

Jan 25, 2017 5:20:23 PM hudson.model.UpdateCenter$UpdateCenterConfiguration download

INFO: Downloading Kubernetes plugin

Jan 25, 2017 5:20:23 PM hudson.PluginManager dynamicLoad

INFO: Attempting to dynamic load /var/lib/jenkins/plugins/kubernetes.jpi

Jan 25, 2017 5:20:24 PM hudson.ExtensionFinder$Sezpoz _find
WARNING: Failed to load org.csanchez.jenkins.plugins.kubernetes.KubectlBuildWrapper$DescriptorImpl 

WARNING: Failed to load org.csanchez.jenkins.plugins.kubernetes.OpenShiftTokenCredentialImpl$DescriptorImpl

WARNING: Failed to load org.csanchez.jenkins.plugins.kubernetes.KubernetesCloud$DescriptorImpl

WARNING: Failed to load org.csanchez.jenkins.plugins.kubernetes.pipeline.PodTemplateStep$DescriptorImpl

WARNING: Failed to load org.csanchez.jenkins.plugins.kubernetes.PodTemplate$DescriptorImpl

WARNING: Failed to load org.csanchez.jenkins.plugins.kubernetes.volumes.NfsVolume$DescriptorImpl 

java.lang.InstantiationException: java.lang.UnsupportedClassVersionError: org/csanchez/jenkins/plugins/kubernetes/volumes/NfsVolume$DescriptorImpl : Unsupported major.minor version 52.0
 

Carlos Sanchez

unread,
Jan 25, 2017, 12:51:35 PM1/25/17
to jenkins...@googlegroups.com
Unsupported major.minor version 52.0

Kubernetes plugin requires Java 8

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.

J

unread,
Jan 25, 2017, 1:11:48 PM1/25/17
to Jenkins Users
Yep that fixed it. Thanks Carlos. It would be good if you mentioned that on the plugin page or the the github README.

For anyone else that stumbles here, I had to completely remove jdk-7 before this started working.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages