On Mon, Jan 22, 2018 at 11:27 PM, Chris Denneen <cdenn...@gmail.com> wrote:

> 1. I was using the external name rather than the internal (cluster.local)
> DNS name in the Kubernetes Cloud Configuration in Jenkins
> 2. Even when I switched it appears it's because the port is necessary (
> http://jenkins.jenkins.svc.cluster.local:443) which I found in open issue
> (https://issues.jenkins-ci.org/browse/JENKINS-48368)
>

The port depends on how you expose the jenkins service. You setup the
jenkins service as non ssl in port 443 ? that's wrong


> 3. If Jenkins wasn't running within a Kubernetes cluster but you wanted to
> leverage the slaves/agents to be run on one then I'm guessing a slave
> secret would need to be made available.
>

That depends on how you want to set it up, there are many options and
different authentication providers


>
> Can documentation for #2 and #3 be made/updated for future?
>
> Thanks
>
> On Monday, January 22, 2018 at 3:01:41 PM UTC-5, Chris Denneen wrote:
>>
>> I've installed latest LTS of jenkins and installed latest
>> kubernetes-plugin.
>>
>> I've created 2 pipeline jobs to test:
>>
>> pod-golang from here (https://kumorilabs.com/blog/k
>> 8s-6-integrating-jenkins-kubernetes/)
>> and one from Carlos Sanchez blog here (https://blog.csanchez.org/201
>> 6/10/25/jenkins-kubernetes-plugin-0-9-released/)
>>
>> Both pods create with the following logs and loop:
>>
>> work/capdev-kubernetes » kubectl logs jenkins-slave-1kl4v-flv53
>> Error from server (BadRequest): a container name must be specified for
>> pod jenkins-slave-1kl4v-flv53, choose one of: [golang jnlp]
>>
>> work/capdev-kubernetes » kubectl logs jenkins-slave-pwcwz-2k20s
>> Error from server (BadRequest): a container name must be specified for
>> pod jenkins-slave-pwcwz-2k20s, choose one of: [maven golang jnlp]
>>
>>
>> Is there something else that needs to be done in order to get these to
>> work?
>>
> --
> 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/01214aa2-964c-4819-99e8-75e8c712b9b1%40googlegroups.
> com
> <https://groups.google.com/d/msgid/jenkinsci-users/01214aa2-964c-4819-99e8-75e8c712b9b1%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> 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/CALHFn6NUQPKrVRkcVDducgRAc-f6-r9h7Q2YVJfuGQTKP5J7Dw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to