There are several ways of doing this. The port-forward
works fine on Google Cloud Shell. If you are using GKE, then I strongly recommend using Cloud Shell, and port-forward
as it is the easiest way. On other clouds, I don't know.
What is suggesting Stefan would work. You can edit the jaeger service with kubectl edit svc jaeger-query
, then change the type of the service from ClusterIP
to NodePort
. Finally, you can access the service with NODE_IP:PORT
(any node). If you do kubectl get svc
, you will see the new port assigned to the service.
Note: You might need to open a firewall rule for that port.
You can also make the service type LoadBalancer
, if you have a control plane to set up an external IP address. This would be a more expensive solution, but you would have a dedicated external IP address for your service.
There are more ways, but I would say these are the appropriate ones.