Skip to content
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

minikube service prevents Ansible playbook from showing URL and finishing #105

Open
Xaeco opened this issue Dec 15, 2021 · 4 comments
Open
Labels
bug Something isn't working

Comments

@Xaeco
Copy link

Xaeco commented Dec 15, 2021

Page 53 in

Chapter 2 - Automation brings DevOps bliss

Running the playbook

$ ansible-playbook -i inventory main.yml

locks up at this step:

TASK [Expose Hello Go on the host via Minikube] 

when running it outside of Ansible it shows its intentionally holding the process there until you are done with it.

$ minikube service hello-go --url=true --interval=1
🏃  Starting tunnel for service hello-go.
|-----------|----------|-------------|------------------------|
| NAMESPACE |   NAME   | TARGET PORT |          URL           |
|-----------|----------|-------------|------------------------|
| default   | hello-go |             | http://127.0.0.1:46029 |
|-----------|----------|-------------|------------------------|
http://127.0.0.1:46029
❗  Because you are using a Docker driver on linux, the terminal needs to be open to run it.
^C✋  Stopping tunnel for service hello-go.
@geerlingguy geerlingguy added the bug Something isn't working label Dec 15, 2021
@geerlingguy
Copy link
Owner

I believe the behavior changed since I originally wrote that bit, so I'll need to update this.

@Xaeco
Copy link
Author

Xaeco commented Dec 16, 2021

I was tempted to find a solution but my experience with minikube is about 24hrs and I want to continue the book before betting too sidetracked 😊

@geerlingguy
Copy link
Owner

Heh, well I appreciate you leaving notes here, so those who bump into the same issues have a place to find an answer until I get the book updated!

@lucas-homer
Copy link

Working through the book now and it works if I remove the --url=true flag, though it pops open the browser for me and still doesn't actually log out the url. With the url flag it was basically hanging on that step and not actually exposing the service on the host. Minor thing for the most part. Thanks for the awesome resource @geerlingguy !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants