https://rancher.com/ logo
Title
b

billions-airline-85860

11/08/2022, 10:05 AM
Hey everyone. I'm getting back into k8s and I've come up to some documentation I wrote myself and I'm a bit baffled. I have a k8s cluster running with k3s and am using Emissary as the ingress controller. I've successfully gotten some decent apps going like Rancher and Keycloak, all being exposed with proper URLs too, like https://rancher.my-url.com and https://auth.my-url.com. I have an Nginx LB in front of the cluster and this is where I'm a bit baffled. It simply streams to the agent/ worker nodes (4 of them) with config like the following.
server {
    listen 443;
    proxy_pass my_agent_nodes_443;
  }

  upstream my_agent_nodes_443 {
    server 185.230.138.110:30679;
    server 185.239.208.173:30679;
    server 38.242.195.7:30679;
    server 38.242.134.42:30679;
  }
And, everything is working hunky dory (which is why I'm flabbergasted). My missing understanding is, how did I get the port numbers for the worker nodes i.e. 30679? I do all this for a hobby and did this work like 6 months ago, but didn't think to also document how I got to the port number and I can't find any mention of those ports in the emissary configs, only listeners for ports 80 and 443. ­čś«