-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Change the default behavior to forward ports? #4163
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
Comments
|
I wonder if the reason they find it intrusive was due to auto port forwarding as opposed to the user defined port forwards. I'm curious how people are developing applications if they can't access them. The two common use cases I would have assumed are Websites and API's Websites need a port forwarded so that you can view it in the browser while developing. API's need the port forwarded so the website can make requests to it. So when I say pointless, i'm thinking from this point of view. I might be in the minority and people are using skaffold for completely different use-cases? |
For eg, users that develop with Docker Desktop have automatic port forwarding so they don't need skaffold to start its own. |
FWIW I would prefer
All of this helps to create a simple workflow. You configure everything in the skaffold file and then a simple I guess i'm spoiled by the npm ecosystem, javascript devs set things up in their package.json file, hide all the configuration in source control and use simple commands for development and deployment |
Oh my god! Finally! I could no figure out for the life of me why I couldn't access any of my services. Yup, absolutely second @ashconnell - if skaffold aims to be simple enough for junior developers (and senior developers like me 😢 ), rather than devops engineers, I think this'd be helpful as a default. Because I was looking at all the files in my If not possible (or wise) to reintroduce as a default, making this settable (like option 3 in the above comment) and adding that to the |
I think we probably want to keep the default the way it is right now (port forwarding OFF by default), but I also understand that it isn't great UX to have to provide the @briandealwis also had the idea of changing the |
I'm all for this improvement :P Every time i come back to a skaffold project i run Much better to have this configuration in the code itself! |
We could also add a My suggested values would be:
I'd suggest that we'd default to |
Note: This issue GoogleCloudPlatform/cloud-code-vscode-internal#2155 is p1 and we should probably also mark it as p1. |
What about the |
@maingoh what flag are you having to specify? If you are wanting to forward specific resources, you can setup user-defined |
From my understanding, the user defined entries is not automatic, in the sense that I have to tell which service and which port to use. Ideally I would like to tell in the yaml that when I run |
The user-defined port-forwards are automatically enabled, but you do have to configure them up-front. I've opened the following issue: |
Exactly, I would like to avoid to configure them. The issue seem to perfectly address my need :) |
Closing this as dupe of #6672 |
Expected behavior
Running
skaffold dev
would bind user-defined port-forwarding by default - OR - allow you to configure it to be bound automatically without the need for the--port-forward
argument.Actual behavior
I couldn't find a way to do this. Additionally, I tried defining them in a profile that auto-activates but the ports still don't forward without adding the
--port-forward
argument.Information
Running
skaffold dev
is expected to start a development environment, but the default functionality is that you can't interact with any of the services you are developing and the user-defined port forwarding rules are ignored?I may have missed the intended way of doing this
The text was updated successfully, but these errors were encountered: