Is there a kubectl port-forward equivalent in podman? Is there a kubectl port-forward equivalent in podman? kubernetes kubernetes

Is there a kubectl port-forward equivalent in podman?


I do not think podman has such an option. There is a 'network' option available in podman. However, it is for creating container networks and not the purpose of port forwarding.

To answer your question, I think socat is the only option

# socat TCP4-LISTEN:5431 TCP4:10.89.1.10:5432

Here anyone connects to 5431 port of the server will be redirected to a container IP and port 10.89.1.10:5432