skaffold port-forwarding does not throw error when port forwarding is not successful. #4897
Labels
area/portforward
good first issue
Good for newcomers
help wanted
We would love to have this done, but don't have the bandwidth, need help from contributors
kind/bug
Something isn't working
kind/friction
Issues causing user pain that do not have a workaround
priority/p1
High impact feature/bug.
I spend 3 hours trying to debug why my ruby application is not working on localhost:8080
Being new to ruby and trying someone's else code using skaffold (written by us), i immediately blamed the code and went down this rabbit hole to debug ruby code.
The actual error was, i had configured port-forwarding incorrecty.
My deployment name was "github-dash", where as in my skaffold config, my port-forward config,
From info logs, I could see port forwarding successful message.
Hitting localhost:8080 did not do anything.
Finally, after adding a bunch of debug statements, i ran a watch on
kubectl port-forward
command and realized there is not port-forward.After turning trace on, i realized, port-forwding was not successful. I remember, we keep re-trying port-forwarding when it fails assuming it failed due to port not being available. We hoped it would eventually recover.
However, in this case, port-forwarding could never recover.
We need to change the logic for re-trying on only specific error conditions.
The text was updated successfully, but these errors were encountered: