<p>Kuberenetes newbie here, we have a jms server outside the cluster thats only accessible through our cluster, how can I create a port forward proxy on the cluster so I can connect to it via my local pc?</p>

flankers33
<p>Proxy is an application layer function or feature, whereas port forwarding is really just a manual entry in one of the NAPT tables. A proxy understands the application protocol and can be used as a single entry point for multiple exposed servers.</p>
<p>The NGINX Ingress Controller for Kubernetes (as a proxy) is compatible with the NGINX web server. If you want to <a href="https://docs.giantswarm.io/getting-started/exposing-workloads/" rel="nofollow noreferrer">access workloads</a> that are already running on your cluster from outside of it. Creating an Ingress resource is the standard procedure. In your workload cluster, add an ingress controller. For installation instructions, see this <a href="https://docs.giantswarm.io/getting-started/ingress-controller/" rel="nofollow noreferrer">page</a>.</p>
<p><strong>Kubernetes port forwarding:</strong></p>
<p>This is especially useful when you want to directly communicate with a specific port on a Pod from your local machine, according to the official kubernetes <a href="https://jamesdefabia.github.io/docs/user-guide/connecting-to-applications-port-forward/#:%7E:text=Compared%20to%20kubectl%20proxy%2C%20kubectl,be%20useful%20for%20database%20debugging" rel="nofollow noreferrer">Connect with Port Forwarding</a> documentation. Additionally, you don't have to manually expose services to accomplish this. Kubectl port-forward, on the other hand, moves connections from a local port to a pod port. Kubectl port-forward is more general than <code>kubectl proxy</code> because it can forward TCP traffic while kubectl proxy can only forward HTTP traffic. Although Kubectl simplifies port forwarding, it should only be utilized for debugging.</p>
<p>You can learn more about how to <a href="https://kubernetes.io/docs/tasks/access-application-cluster/port-forward-access-application-cluster/" rel="nofollow noreferrer">use port-forward to access applications</a> in a cluster and another similar info <a href="https://www.containiq.com/post/kubectl-port-forward" rel="nofollow noreferrer">link</a> &amp; <a href="https://stackoverflow.com/questions/51468491">SO</a> aids in better comprehension.</p>
<p>Finally, for more information, see <a href="https://docs.armor.com/display/KBSS/Port-Forwarding+and+Proxy+Server+and+Client+Deployment.mobile.phone" rel="nofollow noreferrer">Port-Forwarding and Proxy Server and Client Deployment</a>.</p>
