Currently the API reference for port-forward is hardcoded to the /pods/ route
https://github.com/kubernetes-client/javascript/blob/main/src/portforward.ts#L43
As per the Kubernetes docs, port-forward has functionality for any Resource Type (Service, Pod, Deployment, etc)
https://kubernetes.io/docs/reference/kubectl/generated/kubectl_port-forward/
Could there be an added parameter to change this dynamically?