The setup: Jenkins master on K8S/AWS and Slave running on MiniMac. Problem: Slave was not able to reach master despite the fact Master was properly exposed (read: service created / app selector / ELB in place).

This was the post I did as to get some help though ended up figuring out the problem before I got any answer. Sharing it here as solution was also posted there.

Solution to this problem: tunnel through the ELB as to get slave/master connected. How to do this?

  1. Go to Jenkins Master → Nodes → → Advanced → Tunnel: (Above takes for granted that security group/inbound has also been properly configured).
  2. Configured agent port static to 50000: Jenkins Master -> global security -> Agents -> TCP port for inbound agents -> Fixed: 50000

Leave a Reply