while

Timeout issue with kubectl port-forward?

Keep the http-connection alive by polling:

while true ; do nc -vz 127.0.0.1 9817 ; sleep 120 ; done