minikube icon indicating copy to clipboard operation
minikube copied to clipboard

Request for minikube to resolve host.docker.internal to the same as host.minikube.internal

Open nmldiegues opened this issue 2 years ago • 6 comments

What Happened?

minikube resolves "host.minikube.internal" to the host IP. Other platforms (such as Docker for Mac, or Windows) use "host.docker.internal" instead.

It would be great the latter could be added by minikube as an alias to the former, to help convergence across platforms. This way, my docker/k8s resources do not have to worry about the difference.

Attach the log file

Not applicable

Operating System

Ubuntu

Driver

Docker

nmldiegues avatar Sep 02 '22 18:09 nmldiegues

Hi @nmldiegues, have you tried setting up a local alias to point host.minikube.internal to host.docker.internal?

klaases avatar Sep 09 '22 23:09 klaases

How would I go about doing that in minikube?

the idea is to not have to change the container logic nor k8s deployments

nmldiegues avatar Sep 09 '22 23:09 nmldiegues

Hi @nmldiegues, this would be a setting on your local machine, without changing container logic or k8s deployments.

Would something like the following help?

https://linux.die.net/man/8/iptables

klaases avatar Oct 12 '22 00:10 klaases

Either I expressed myself wrongly, or I'm not following the idea. The problem is that minikube's pods/containers do not map "host.docker.internal" to the host IP. That is common in other local k8s cluster providers/products. Instead, minikube only maps "host.minikube.internal" to the host IP.

I do not see how doing anything in the host would help, since the problem is inside minikube's pods/containers.

nmldiegues avatar Oct 12 '22 09:10 nmldiegues

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot avatar Jan 10 '23 10:01 k8s-triage-robot

/remove-lifecycle stale

joel0 avatar Jan 10 '23 15:01 joel0

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot avatar Apr 10 '23 15:04 k8s-triage-robot

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle rotten
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

k8s-triage-robot avatar May 10 '23 16:05 k8s-triage-robot

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Reopen this issue with /reopen
  • Mark this issue as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close not-planned

k8s-triage-robot avatar Jun 09 '23 16:06 k8s-triage-robot

@k8s-triage-robot: Closing this issue, marking it as "Not Planned".

In response to this:

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Reopen this issue with /reopen
  • Mark this issue as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close not-planned

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.

k8s-ci-robot avatar Jun 09 '23 16:06 k8s-ci-robot