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

Kubernetes: Cannot access service? #9606

Closed
1 of 2 tasks
shinebayar-g opened this issue Nov 23, 2020 · 2 comments
Closed
1 of 2 tasks

Kubernetes: Cannot access service? #9606

shinebayar-g opened this issue Nov 23, 2020 · 2 comments

Comments

@shinebayar-g
Copy link

shinebayar-g commented Nov 23, 2020

  • I have tried with the latest version of my channel (Stable or Edge)
  • I have uploaded Diagnostics
  • Diagnostics ID:

Expected behavior

Access kubernetes services successfully.

Actual behavior

Kubernetes services are not accessible.

Information

  • Windows Version: Windows 10 Home, Version 20H2 (OS Build 19042.630)
  • Docker Desktop Version: 2.5.0.1 (49550) Stable
  • Kubernetes version: 19.03.13

Steps to reproduce the behavior

  1. Install Docker desktop with Ubuntu 20.04 LTS WSL2 backend.
  2. Enable Docker desktop's Kubernetes cluster.
  3. Deploy simple service
kubectl create deployment nginx --image=nginx:1.18-alpine
kubectl expose deployment nginx --port=80

This deployment should be accessible at nginx:80 inside cluster., but it's not.
If I do curl nginx:80 from another pod inside kubernetes cluster, nothing happens. Telnet cannot open port.
However if I try to access pod's IP address directly like: curl 10.1.0.21:80 it's working.

What should I do?

@shinebayar-g
Copy link
Author

shinebayar-g commented Nov 23, 2020

It's working! Thanks to this person, now everything is working as expected.

wsl --shutdown did the job. I also ran kubectl port-forward on PowerShell, not Terminall app if that helps.

@docker-robott
Copy link
Collaborator

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle locked

@docker docker locked and limited conversation to collaborators Dec 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants