-
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
Document minikube to minikube network communication (testing) #2602
Comments
Sounds like you are trying to do docker-in-docker, which is not what minikube does... But you should be able to use minikube from other containers running in the same VM |
I'm trying to connect to minikube to test some stuff that relies on kubernetes functionality. The simplest version of what I'm trying to do is
But I believe the port is randomized on minikube start, and the kube config file would need to be shared with the other pod as well? I'm probably missing something obvious? |
I'm still trying to parse what "run minikube in a container" means. Normally you will run it in a VM ? |
Meaning just the controller, using an existing docker daemon and vm driver none. Anything minikube runs in terms of pods run's via the existing docker daemon, but the actual kube service is in its own docker container rather than on the host machine. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
May I /reopen ? @jimmiebtlr explanations of what he wants sounds good to me and I would like to have this feature too 😊. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
If someone is willing to write up a tutorial, one of these would make a perfect home for it: https://minikube.sigs.k8s.io/docs/tutorials/ |
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
Feature request
I'd like to run minikube in one docker container and connect to it from another.
I'd like to be able to run an integration test layer using minikube, and have tests connect to minikube from the container, but the config minikube generates seems to use a random ip that complicates it.
Please provide the following details:
Environment:
Trying to run minikube in a docker container and connect to it from another docker container.
minikube version: v0.25.0
VM Driver = none
ISO Version = v1.9.0
docker-compose version 1.18.0, build 8dd22a9
docker version: 1.13.1
What happened:
I'm unable to connect to minikube from another linked container via
What you expected to happen:
A list of pods returned.
How to reproduce it (as minimally and precisely as possible):
With the docker file
start.sh
With the following docker-compose.yml
run
docker-compose run get-pods
The text was updated successfully, but these errors were encountered: