you can check the steps in
https://github.com/jenkinsci/kubernetes-plugin/#debugging to debug

On Fri, Feb 9, 2018 at 7:09 AM, Nick Li <nicklee...@gmail.com> wrote:

> jenkins-slave is offline (suspend) from jenkins webpage.
>
> My environment:
> I have jenkins running on a debian server, created a k8s cluster in gcp.
> installed kubernetes-plugin, configed k8s in jenkins cloud section,(using
> admin/k8s password.),
>
> Then created a test pipeline job using the following script
> ```
> podTemplate(label: 'pod-golang',
>     containers: [
>         containerTemplate(
>             name: 'golang',
>             image: 'golang',
>             ttyEnabled: true,
>             command: 'cat'
>         )
>     ]
> ) {
>     node ('pod-golang') {
>
>         stage 'Switch to Utility Container'
>         container('golang') {
>
>           sh ("go version")
>
>         }
>     }
> }
> ```
> from `kubectl get pods` I can see the pod is created, but on jenkins
> webpage, jenkins-slave is alwasy showing offline
> Any ideas
>
> Thanks
>
> --
> 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/b2350dfa-07fd-4935-9d49-42c5d9d35d5f%40googlegroups.
> com
> <https://groups.google.com/d/msgid/jenkinsci-users/b2350dfa-07fd-4935-9d49-42c5d9d35d5f%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/CALHFn6M8kTg7imkj%3DzN%3D_tKrwhQUPGbFdCZrhHHJtun3_L25%2Bg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to