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. https://superuser.com/questions/1478871/jnlp4-connect-error-connection-closed-before-acknowledgement-sent/1478992#1478992
Solution to this problem: tunnel through the ELB as to get slave/master connected. How to do this?
- Go to Jenkins Master → Nodes → → Advanced → Tunnel: ernal-aef67c013ca2d11e9b6abdsadasdasdasdsadasdadasdasddasdas.us-west-10.elb.amazonaws.com:50000 (Above takes for granted that security group/inbound has also been properly configured).
- Configured agent port static to 50000: Jenkins Master -> global security -> Agents -> TCP port for inbound agents -> Fixed: 50000