Kubernetes plugin cloud not found error

396 views
Skip to first unread message

Prasanna Ranganathan

unread,
Mar 14, 2018, 9:38:23 AM3/14/18
to Jenkins Users
Hi,

I was trying the kubernetes plugin. I installed and configured the kubernetes setup connection test was successfull.
and tried the below code.

def label = "mypod-${UUID.randomUUID().toString()}"echo "Label:" + labelpodTemplate(label: label) { node(label) { stage('Run shell') { sh 'echo hello world' } }}

But still, i do get this error.

[Pipeline] podTemplate
[Pipeline] // podTemplate
[Pipeline] End of Pipeline
ERROR: Cloud does not exist: kubernetes
Finished: FAILURE


even if i give cloud variable as something still it says cloud does not exist

JonathanRRogers

unread,
Mar 14, 2018, 9:54:11 PM3/14/18
to Jenkins Users

On your Jenkins /configure page, make sure that "kubernetes" is in the "Name"  field in the "Kubernetes" section.

Carlos Sanchez

unread,
Mar 15, 2018, 9:00:38 AM3/15/18
to Jenkins Users
You need to use "add cloud" in jenkins configuration

--
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/998c5cbc-3de7-4131-b77f-fdd949a71477%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages