-
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
with skaffold dev, the forwarded ports change on the code changes #1815
Comments
Hey @jiraguha could you provide more information regarding your project (the contents of your k8s yamls would be helpful), or more specifically are pods recreated upon every code change? We recently updated the port forward key to include pod name, so if a pod is being recreated upon every code change that would explain why this is happening. |
I just started using skaffold yesterday and I'm running into the same issue.
|
For completeness skaffold.yaml:
|
Hi @priyawadhwa, You can find all my project and the k8s here. You will see.. basically, It's something I have generated with kompose. Yes the pods are recreated:
Yes maybe, the pod name should not be in the key as with java everything is rebuilt. Br, |
I was having the same issue. It was because the pod name was changing, because I was using a deployment. I switched to using a pod directly (so that the pod name was static) and now the port forwarding remains static as well. However, it would be super useful if I could use a |
I was having the same issue. |
Seems related to #1594 I can confirm this behavior exists in Port forwarding during |
Also running into this issue and wondering it's being considered a bug that will be fixed |
This way, when pods are regenerated, they will be mapped to the same port. This should fix some of the issues users have been facing in GoogleContainerTools#1815 and GoogleContainerTools#1594.
I've just ran into the same issue with v0.28 on MacOS. I checked the latest build and this port changing issue seems to be fixed. 👍 One thing I've noticed with the latest build, though unrelated to this issue, is that my current file sync results in error for me:
Looks like it's still referencing the original pod |
What is provided for
Sent from Yahoo Mail on Android
On Mon, May 6, 2019 at 7:22 PM, Dmitri Moore<notifications@github.com> wrote:
I've just ran into the same issue with v0.28 on MacOS. I checked the latest build and this port changing issue seems to be fixed. 👍
One thing I've noticed with the latest build, though unrelated to this issue, is that my current file sync results in error for me:
Syncing 1 files for dl-org-api.dev:3a15582509b7144222b3685129694697a1ca8b7d37b31397801d86f13013e51e
INFO[0396] Copying files: map[test/request/request-test-helper.ts:/usr/src/dl-org/test/request/request-test-helper.ts] to dl-org-api.dev:3a15582509b7144222b3685129694697a1ca8b7d37b31397801d86f13013e51e
WARN[0397] Skipping deploy due to sync error: copying files: Running [kubectl exec dl-org-api-7b87dcbcf6-rqnlq --namespace default -c dl-org-api -i -- tar xmf - -C / --no-same-owner]: stdout , stderr: error: unable to upgrade connection: container not found ("dl-org-api")
, err: exit status 1: exit status 1
Looks like it's still referencing the original pod dl-org-api-7b87dcbcf6-rqnlq that is now in "Terminating" status after the update instead of referencing the latest running pod.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hmm... I'm no longer seeing the sync error reported above. Seems to be working OK after restart. |
Thanks @demisx Since this should be fixed in the next release, I'm going to go ahead and close this issue. If anyone continues to see any issues feel free to comment here and we can open it up again. |
Hi,
Adopting skaffold dev for java dev, I am experiencing an issue similar to #1594
Each time I make a change in my java code, all ports that are forwarded are incremented by 1.
Information
Steps to reproduce the behavior
skaffold dev
, I have: 8081 -> 8081Br,
JP
The text was updated successfully, but these errors were encountered: