Connecting static node within 'jenkins-kubernetes-plugin' dynamic environment.

21 views
Skip to first unread message

WANG, YAN-HONG

unread,
Mar 5, 2018, 5:35:01 AM3/5/18
to jenkins
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

Carlos Sanchez

unread,
Mar 5, 2018, 5:41:52 AM3/5/18
to Jenkins Users
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

--
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/CADLWyO3EOf-OeXo3jZtwgznqyzhA%2BqZVkpjZT5ModrcXJYLQkA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

YAN-HONG WANG

unread,
Mar 5, 2018, 10:47:08 AM3/5/18
to Jenkins Users
Hello Carlos,

Thanks very much for your fast hint.
I will try it.

Hong


Am Montag, 5. März 2018 11:41:52 UTC+1 schrieb Carlos Sanchez:
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
On Mon, Mar 5, 2018 at 11:34 AM, WANG, YAN-HONG <allway...@gmail.com> 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 jenkinsci-use...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages