-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Add new flag "--ports" to expose ports for docker & podman drivers #9404
Conversation
Welcome @toonvanstrijp! |
Hi @toonvanstrijp. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: ToonvanStrijp The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Can one of the admins verify this patch? |
Travis tests have failedHey @toonvanstrijp, 1st Buildmake test
TravisBuddy Request Identifier: f556a7d0-07c9-11eb-a712-35638fe859f6 |
/assign @sharifelgamal |
Not an admin here, but I was analyzing the changes, and I have a question: as the start command already binds some ports to the 127.0.0.1 IP address, if the user choose to expose those ports will them be bound to the correct IP for exposure (0.0.0.0 or any other supplied)? That is, if the user provides custom ports (including the default ones), those have to have priority over the default ones. |
Travis tests have failedHey @toonvanstrijp, 1st Buildmake test
TravisBuddy Request Identifier: 77db4490-08ba-11eb-9b15-83942378e0dd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you very much for this PR
It's important to note that the e.g.
Probably I'm a bit dim, but it took me a couple of hours to work this out, so posting it here in the hope that it helps someone else. |
What would be the syntax if I need to have 2 minikube nodes (docker). I tried the below with no luck: $ minikube start --nodes 2 --driver=docker --ports=":30778" --ports=":9001" ❌ Exiting due to MK_USAGE: Sorry, one of the ports provided with --ports flag is not valid [:30778 :9001] |
Seems that for multi-node minikube the --ports parameter is also sent to the workers causing a "port is already allocated" error because the ports were already assigned while launching the first minikube container instance. (minikube version 1.26.0) minikube start --driver=docker --nodes=2 --ports=9000:9000 |
expose extra ports when using docker driver. This fixes issue: #8008 #8398 #9198
Usage:
Please let me know if changes are necessary 😃