-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port forwarding failing to start (using Argo Rollouts) #9656
Comments
You're trying to target a pod named You could try using a service instead for the port forward. Or see if kubectl port-forward accepts Argo Rollout resource types. See https://kubernetes.io/docs/reference/kubectl/generated/kubectl_port-forward/ |
@kallangerard the generated name was something that I thought would be an issue, but using the service doesn't work either:
Despite the fact that the service exists. The setup in
See:
Note that forwarding to a service WORKS after the first redeploy (if I rebuild the main docker image). At that point there is still an old Pod around and I suppose that is why the port forwarding to the service works:
|
Is the pod actually running when you try that?
|
The pod turns to be running later, see the deployment logs in the issue summary. So it looks to me like the port forwarding to pod (or a service) is attempted once the "deployment stabilizes" (not sure what the condition is):
But the service logs are shown after this message. I am not sure why/how this works though because in Could it be that |
I am wondering why does the |
Expected behavior
When using
skaffold dev --port-forward
the ports I have setup in my YAML would automatically port-forward.Actual behavior
We are using Argo Rollout in our Helm chart (not sure if this matters). When using the above I see the following:
Information
Additional logs:
I am surprised that the deployment is "stabilized" in 12ms before the pod is actually running. Note that the Pod is healthy in ~2s but port forward needs to be manually setup. The name is
dx-ref-java-quarkus-im-webserver-6fb9db8544-6xx4s
(note the hash) and it's not controlled by Deployment (but by a ReplicaSet which is controlled by ArgoRollout).The text was updated successfully, but these errors were encountered: