We are trying to set up frp on a kubernetes cluster, frp server is run in a pod and exposed via a LoadBalancer. Whenever a client registers with that server, a new port is exposed on that pod, the port number can be anything depending on the client. I created a service with some target ports and in the client, I mentioned those ports only; this setup works fine, but I need to make it dynamic.
Is there any way to set up a kubernetes service, by which, we can access any port from a pod via the service? without mentioning any port in "targetPort" of service or by mentioning some range in targetPort?