Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
When using --swap-deployment please auto expose ports that the deployment expects exposed #185
I ran into this as well. In my case the deployment doesn't actually specify any ports. They are only specified in my Dockerfile, however I think it would be relatively straightforward, and quite convenient, to infer a port to expose based on the service associated with the deployment.
If no --expose is specified and no ports are detected, print out warning. Also should always print exposed ports, for security reasons. Finally, need to support case where --expose overrides auto-expose (specifically, we want to listen on different local port.)
And maybe there should also be a