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.
More on Plugins, JCasC & Jenkins on Kubernetes
How do you manage plugins in a reproducible way?IntermediateWhat does `jenkins-plugin-cli` resolve for you, and what flags matter?IntermediateWhy should you keep the number of plugins low?BeginnerWhat is JCasC and how is it loaded?BeginnerWhat are the top-level root elements in a JCasC file?IntermediateHow do you inject secrets into JCasC without committing them?Advanced