-
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
kic: Use bind IP for minikube IP on linux #7267
Conversation
The registry addon expects $(minikube ip):5000 to be exposed. Since `minikube ip` is localhost for the docker driver, we need to expose port 5000 on creation in case the registry addon is running so that this works as expected.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: priyawadhwa The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/ok-to-test |
Error: running mkcmp: exit status 1 |
We want to return the external ip when running $(minikube ip). This was causing a bug in `TestAddons/parallel/Registry`, which expects $(minikube ip):5000 to connect to an nginx service when the registry addon is enabled.
…testaddons-registry
/ok-to-test |
Codecov Report
@@ Coverage Diff @@
## master #7267 +/- ##
==========================================
- Coverage 37.86% 37.84% -0.03%
==========================================
Files 147 147
Lines 9089 9094 +5
==========================================
Hits 3442 3442
- Misses 5222 5227 +5
Partials 425 425
|
All Times minikube: [ 62.954377 64.257964 64.012811] Average minikube: 63.741717 Averages Time Per Log
|
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.
need to verify this on mac os. (our CI machines for mac os dont work) so need to verify the tests manaully
pkg/minikube/mustload/mustload.go
Outdated
@@ -111,10 +110,6 @@ func Running(name string) ClusterController { | |||
exit.WithError("Unable to get driver IP", err) | |||
} | |||
|
|||
if driver.IsKIC(host.DriverName) { |
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.
If I am not wrong, I believe we still need this for macOS.
we can not hit the IP of the container but the DefaultBind 127.0.0.1
So on Mac I'm getting an i/o timeout:
|
If I understand, this test can't really work on macOS, because the port isn't exposed. @medyagh - What's the mechanism that regular users should be using to expose this port properly? The test should be using that, at least in the |
Not sure there is anything proper about 5000, probably should use a tunnel to expose it ? Where |
On linux, we want to keep the IP set to the internal IP. This is because this IP is exposed and so we can use it on Linux. This doesn't fix the IP issue on mac or windows, it's just a temporary fix for the linux case. We will need to find a way to expose internal ports on Mac/Windows so that the registry addon works as expected on those platforms.
cc @medyagh PTAL as a temporary fix on linux |
All Times minikube: [ 64.116723 58.581442 63.641151] Average minikube: 62.113105 Averages Time Per Log
|
We want to return the external ip when running $(minikube ip). This was causing a bug in
TestAddons/parallel/Registry
, which expects $(minikube ip):5000 to connect to an nginx service when the registry addon is enabled.fixes #7191