Interesting. Here is what led me to believe that the server i get in the UI and the server that i connect to inside the agents are the same:
in the agent, I looking in the TRAINS_API_HOST and then run nslookup on the url. Same with the WEB_API_HOST.root@trains-agent-584dfcc6cd-fxvkb:/# echo $TRAINS_API_HOST
`
root@trains-agent-584dfcc6cd-fxvkb:/# nslookup apiserver-service
Server: 10.100.0.10
Address: 10.100.0.10#53
Name: apiserver-service.trains.svc.cluster.local
Address: 10.100.138.234
root@trains-agent-584dfcc6cd-fxvkb:/# echo $TRAINS_WEB_HOST
root@trains-agent-584dfcc6cd-fxvkb:/# nslookup webserver-service
Server: 10.100.0.10
Address: 10.100.0.10#53
Name: webserver-service.trains.svc.cluster.local
Address: 10.100.129.136 When i look for all services in the trains namespace, this is what i get
❯ kubectl get svc -n trains
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
apiserver-service NodePort 10.100.138.234 <none> 8008:30008/TCP 138m
elasticsearch-service ClusterIP 10.100.28.19 <none> 9200/TCP 138m
fileserver-service NodePort 10.100.100.119 <none> 8081:30081/TCP 138m
mongo-service ClusterIP 10.100.216.254 <none> 27017/TCP 138m
redis ClusterIP 10.100.70.180 <none> 6379/TCP 138m
webserver-service NodePort 10.100.129.136 <none> 80:30080/TCP 138m `In both cases, we see that the apiserver is at 10.100.138.234 and the webserver is at 10.100.129.136
The only way i connected to the UI is by running the following command:kubectl port-forward -n trains svc/webserver-service 9999:80
and then browsing to http://localhost:9999/
There is one thing that seems weird. When i try to get a credentials config from the UI, here is what it says:~/trains.conf api { web_server:
api_server:
credentials { "access_key" = "..." "secret_key" = "..." } }