There are TCP ports that should not be exposed to the outside world, but are isolated between several containers in a network.
To access such a port for debugging purposes, kubectl port-forward
can be used from outside the container network. E.g. for access to a non-exposed k8s database on a developer workstation: kubectl port-forward pods / app-dev-database-0 5432: 5432 -n app
Is there a Podman equivalent for kubectl port-forward
to set up port forwarding from the Podman host to an existing and running container?