Interview Prep/Jenkins/Plugins, JCasC & Jenkins on Kubernetes

WebSocket vs TCP port 50000 for Kubernetes agents: which do you use?

IntermediateConceptPlugins, JCasC & Jenkins on Kubernetes
Answer

WebSocket (webSocket: true in the cloud config, or -webSocket for agent.jar). Agents connect over the same HTTP(S) port as the UI, so you need only one Service port and it works through ingress controllers, load balancers and proxies. TCP 50000 requires an extra Service port and a separate path through firewalls. Inside one cluster both work; for agents in other clusters or networks WebSocket is much simpler.

All Jenkins questions Roadmap: Jenkins

More on Plugins, JCasC & Jenkins on Kubernetes