yes, you can do that, using the tunnel parameter of the jnlp-slave jar
If you want to run an external agent on docker use
JENKINS_TUNNEL=your_node_ip:your_node_port for instance
https://github.com/jenkinsci/docker-jnlp-slave#running

On Mon, Mar 5, 2018 at 11:34 AM, WANG, YAN-HONG <[email protected]>
wrote:

> Hello,
>
> I use jenkins-kubernetes-plugin to run Jenkins in Kubernetes cluster.
> So far that works perfectly.
> All the nodes are automatically generated and destroyed in right moment of
> pipeline.
>
> But, is it possible to connect external *static node *within Jenkins of
> Kubernetes cluster ?
>
> By definition of NodePort, the Kubernetes master only allocates a port
> from a flag-configured range: *30000-32767*.
> Suppose I need to expose *8080 *and *50000 *with *30808 *and *30500 *
> 'NodePort'.
>
> I tried to change the agent_port to
> *30500.*
> ​But, that still doesn't work...
>
> Is there any someone have some similar condition?
>
> Best regards,
> Hong
>
> --
> 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 [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/CADLWyO3EOf-OeXo3jZtwgznqyzhA%
> 2BqZVkpjZT5ModrcXJYLQkA%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CADLWyO3EOf-OeXo3jZtwgznqyzhA%2BqZVkpjZT5ModrcXJYLQkA%40mail.gmail.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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CALHFn6O7_SKgbc7qeMQ4q%3DfXXcA%3DGA0t9%2B%2B5HGWoEKutgTfqRQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to