Skip to main content

Argocd-related issues and solutions


breaking port-forward issues, this is not just for argocd alone, when you encounter breaking port forward issues on kubectl

just open another terminal and put the service up regardless using the following syntax

while true ; do nc -vz 8080 ; sleep 10 ; done

so is your localhost you are port forwarding to and the 8080 port is something you can change to any port you are trying to port forward to.

so the command is while true keeps the netcat connection on a loop non-stop, and the sleep 10 is needed because the while true is a hot loop, so nc -vz host port, helps keep querying the server for you to see if the connection is dead or successful, if not it continues.

hence keeping the connection alive