Re: One Jenkins, Multiple Kubernetes Clusters

2019-03-07 Thread Steve Garrett
Yes, for me it was that the pod wasn't defined properly in the cloud
configuration within Jenkins and all seems to be right.  I just need to
expose the jnlp ports outside the cluster so the jnlp container can
communicate with Jenkins in the other cluster.  Thanks for your help,
appreciate it

Steve


On Thu, Mar 7, 2019 at 2:32 PM Liejun Tao  wrote:

> kubectl describe pod
> would tell why the pod can't start.
> If you are using private registry, "pull image secret" is required.
> Sometimes a manual "docker logout" on the worker node help with image pull.
>
> On Thu, Mar 7, 2019 at 12:05 PM Steve Garrett 
> wrote:
>
>> Hi, was able to figure that out, thanks for your help there.  Now I get a
>> different problem.  My pod gets created now on the right cluster but it
>> seems to fail to pull the image.  When I go onto any of the worker nodes
>> I'm able to do a docker pull and it works just fine.  What am I doing wrong?
>>
>> Thanks
>>
>> Steve
>>
>>
>> On Thu, Mar 7, 2019 at 4:42 AM Carlos Sanchez  wrote:
>>
>>> are you creating pod templates in UI or in pipeline?
>>>
>>> in UI is just a matter of assigning different labels to different pod
>>> templates in different clouds
>>> in pipeline you can pass an argument "cloud" to podTemplate
>>>
>>> On Wed, Mar 6, 2019 at 8:23 PM Steve Garrett 
>>> wrote:
>>>
 Hi,

 I'm trying to use multiple kubernetes clouds and have just a single
 jenkins I was able to get both kubernetes clusters registered as clouds and
 all the login checks work. When I run a build to the cluster where
 Jenkins is, i
 t works fine, pulls code, builds an image and all that. However, when I
 change the label to my second cluster, that doesn't have any Jenkins there
 it seems to never want to build there and always builds on the cluster
 that's local to Jenkins.

 I'm missing something stupid I'm sure of it but don't see what it is.


 Thanks for your help


 Steve

 --
 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+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/jenkinsci-users/51ef6954-78a9-44cf-a4f0-0848fb0f5547%40googlegroups.com
 
 .
 For more options, visit https://groups.google.com/d/optout.

>>> --
>>> 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+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/CALHFn6OXYBB0NXC%2BPZ3%2B7q-SnBxOpCausC0UNC2_JkRvdd7%2B9Q%40mail.gmail.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/CAAtmvvtdpyXVZ%3DSNufUEzOEPdxECaj0jjKSSfqnsMqZ0b0%3DM1Q%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> --
> Thanks,
> Baibai
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CAMRm5ja1A6KTGsoZrq%2BRr-nyGwz-TLDKGYi%2B7YOjZn8Lubj7hg%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAAtmvvtai_Qb_i8sQ9he3NK-FgTW%3D7ZHaZtvaVMEejjUY%3DnW6g%40mail.gmail.com.
For more 

Re: One Jenkins, Multiple Kubernetes Clusters

2019-03-07 Thread Liejun Tao
kubectl describe pod
would tell why the pod can't start.
If you are using private registry, "pull image secret" is required.
Sometimes a manual "docker logout" on the worker node help with image pull.

On Thu, Mar 7, 2019 at 12:05 PM Steve Garrett 
wrote:

> Hi, was able to figure that out, thanks for your help there.  Now I get a
> different problem.  My pod gets created now on the right cluster but it
> seems to fail to pull the image.  When I go onto any of the worker nodes
> I'm able to do a docker pull and it works just fine.  What am I doing wrong?
>
> Thanks
>
> Steve
>
>
> On Thu, Mar 7, 2019 at 4:42 AM Carlos Sanchez  wrote:
>
>> are you creating pod templates in UI or in pipeline?
>>
>> in UI is just a matter of assigning different labels to different pod
>> templates in different clouds
>> in pipeline you can pass an argument "cloud" to podTemplate
>>
>> On Wed, Mar 6, 2019 at 8:23 PM Steve Garrett 
>> wrote:
>>
>>> Hi,
>>>
>>> I'm trying to use multiple kubernetes clouds and have just a single
>>> jenkins I was able to get both kubernetes clusters registered as clouds and
>>> all the login checks work. When I run a build to the cluster where
>>> Jenkins is, i
>>> t works fine, pulls code, builds an image and all that. However, when I
>>> change the label to my second cluster, that doesn't have any Jenkins there
>>> it seems to never want to build there and always builds on the cluster
>>> that's local to Jenkins.
>>>
>>> I'm missing something stupid I'm sure of it but don't see what it is.
>>>
>>>
>>> Thanks for your help
>>>
>>>
>>> Steve
>>>
>>> --
>>> 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+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/51ef6954-78a9-44cf-a4f0-0848fb0f5547%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/CALHFn6OXYBB0NXC%2BPZ3%2B7q-SnBxOpCausC0UNC2_JkRvdd7%2B9Q%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CAAtmvvtdpyXVZ%3DSNufUEzOEPdxECaj0jjKSSfqnsMqZ0b0%3DM1Q%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Thanks,
Baibai

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAMRm5ja1A6KTGsoZrq%2BRr-nyGwz-TLDKGYi%2B7YOjZn8Lubj7hg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: One Jenkins, Multiple Kubernetes Clusters

2019-03-07 Thread Steve Garrett
Hi, was able to figure that out, thanks for your help there.  Now I get a
different problem.  My pod gets created now on the right cluster but it
seems to fail to pull the image.  When I go onto any of the worker nodes
I'm able to do a docker pull and it works just fine.  What am I doing wrong?

Thanks

Steve


On Thu, Mar 7, 2019 at 4:42 AM Carlos Sanchez  wrote:

> are you creating pod templates in UI or in pipeline?
>
> in UI is just a matter of assigning different labels to different pod
> templates in different clouds
> in pipeline you can pass an argument "cloud" to podTemplate
>
> On Wed, Mar 6, 2019 at 8:23 PM Steve Garrett 
> wrote:
>
>> Hi,
>>
>> I'm trying to use multiple kubernetes clouds and have just a single
>> jenkins I was able to get both kubernetes clusters registered as clouds and
>> all the login checks work. When I run a build to the cluster where
>> Jenkins is, i
>> t works fine, pulls code, builds an image and all that. However, when I
>> change the label to my second cluster, that doesn't have any Jenkins there
>> it seems to never want to build there and always builds on the cluster
>> that's local to Jenkins.
>>
>> I'm missing something stupid I'm sure of it but don't see what it is.
>>
>>
>> Thanks for your help
>>
>>
>> Steve
>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/51ef6954-78a9-44cf-a4f0-0848fb0f5547%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CALHFn6OXYBB0NXC%2BPZ3%2B7q-SnBxOpCausC0UNC2_JkRvdd7%2B9Q%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAAtmvvtdpyXVZ%3DSNufUEzOEPdxECaj0jjKSSfqnsMqZ0b0%3DM1Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: One Jenkins, Multiple Kubernetes Clusters

2019-03-07 Thread Steve Garrett

Hi,

in the podTemplate, I'm using scripted jenkinsfiles so does that still 
apply?  I've never seen a cloud parameter before.

Thanks,

Steve

On Thursday, March 7, 2019 at 4:42:24 AM UTC-5, Carlos Sanchez wrote:
>
> are you creating pod templates in UI or in pipeline?
>
> in UI is just a matter of assigning different labels to different pod 
> templates in different clouds
> in pipeline you can pass an argument "cloud" to podTemplate
>
> On Wed, Mar 6, 2019 at 8:23 PM Steve Garrett  > wrote:
>
>> Hi,
>>
>> I'm trying to use multiple kubernetes clouds and have just a single 
>> jenkins I was able to get both kubernetes clusters registered as clouds and 
>> all the login checks work. When I run a build to the cluster where 
>> Jenkins is, i
>> t works fine, pulls code, builds an image and all that. However, when I 
>> change the label to my second cluster, that doesn't have any Jenkins there 
>> it seems to never want to build there and always builds on the cluster 
>> that's local to Jenkins.
>>
>> I'm missing something stupid I'm sure of it but don't see what it is.
>>
>>
>> Thanks for your help
>>
>>
>> Steve
>>
>> -- 
>> 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-use...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/51ef6954-78a9-44cf-a4f0-0848fb0f5547%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/960fa5b1-165c-4d05-947d-792f5638445d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: One Jenkins, Multiple Kubernetes Clusters

2019-03-07 Thread Carlos Sanchez
are you creating pod templates in UI or in pipeline?

in UI is just a matter of assigning different labels to different pod
templates in different clouds
in pipeline you can pass an argument "cloud" to podTemplate

On Wed, Mar 6, 2019 at 8:23 PM Steve Garrett 
wrote:

> Hi,
>
> I'm trying to use multiple kubernetes clouds and have just a single
> jenkins I was able to get both kubernetes clusters registered as clouds and
> all the login checks work. When I run a build to the cluster where
> Jenkins is, i
> t works fine, pulls code, builds an image and all that. However, when I
> change the label to my second cluster, that doesn't have any Jenkins there
> it seems to never want to build there and always builds on the cluster
> that's local to Jenkins.
>
> I'm missing something stupid I'm sure of it but don't see what it is.
>
>
> Thanks for your help
>
>
> Steve
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/51ef6954-78a9-44cf-a4f0-0848fb0f5547%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CALHFn6OXYBB0NXC%2BPZ3%2B7q-SnBxOpCausC0UNC2_JkRvdd7%2B9Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


One Jenkins, Multiple Kubernetes Clusters

2019-03-06 Thread Steve Garrett
Hi,

I'm trying to use multiple kubernetes clouds and have just a single jenkins 
I was able to get both kubernetes clusters registered as clouds and all the 
login checks work. When I run a build to the cluster where Jenkins is, i
t works fine, pulls code, builds an image and all that. However, when I 
change the label to my second cluster, that doesn't have any Jenkins there 
it seems to never want to build there and always builds on the cluster 
that's local to Jenkins.

I'm missing something stupid I'm sure of it but don't see what it is.


Thanks for your help


Steve

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/51ef6954-78a9-44cf-a4f0-0848fb0f5547%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.