-
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 |
Any suggestions here @kallangerard ? Thanks! |
Looks like there is a feature added by @ericzzzzzzz in 97c9c14#diff-ec89f93c5bc490d5558545dc8338f1ff94cf25bfc84469a6266a2ddae41e3f68R778 that allows CRDs to be ?monitored? for status, though this is not fitting my bill. When I debug I have also tried with {
"selectors": [
{
"group": "argoproj.io",
"kind": "Rollout"
}
]
} and passing this file into Is there a mechanism to monitor these rollouts instead of Deployments? I can potentially even monitor "non-standalone" Pods with Skaffold Run-ID but that would mean making a change in the source and I doubt this type of contribution is what will be accepted in |
I can confirm that if I make change in pod.go:
and include all pods (not just standalone pods) then the detection works fine:
I am happy to create a PR for this, but I am not clear why was the |
@gsquared94 you have added the filter for standalone pods in 14314b4#diff-3f3b4b2f9bde6d865f17be301760aa1f5ec701f66ea7091a3513c2e58f5c2b6f Any reason only standalone pods are monitored and not any pods? For some reason the pods created via Argo Rollouts are not monitored and a quick fix is removing the filter above... |
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: