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

Traefik Ingress Issue - Skipping service: no endpoints found Windows 10 wsl #5093

Closed
amardeep2006 opened this issue Jul 4, 2023 · 6 comments
Labels
triage/confirmed Issue has been reproduced by dev team triage/not-reproducible Not (or no longer) reproducible

Comments

@amardeep2006
Copy link

Actual Behavior

I have deployed a very simple app via helm chart on local kubernetes. The application is not accessible via Ingress.
The application is accessible if I port forward service directly which means service is created correctly.

I also tried following and it works fine with nginx ingress:

  • Disable Traefik ingress
  • Deploy nginx-ingress
  • Add ingress class as nginx in ingress.yaml file

Steps to Reproduce

  1. Clone following repo: https://github.com/jwsy/simplest-k8s/tree/helm
  2. Checkout branch named helm
  3. helm install jadeshooter .
  4. Tried below URLs in browser :

https://jade-shooter.rancher.localhost/

http://jade-shooter.rancher.localhost/

Result

You will see connection refused error in browser.

Expected Behavior

URL must open and your should see a lovely game called Jadeshooter.

Additional Information

I see this error in Traefik pod

time="2023-07-01T05:04:36Z" level=error msg="Skipping service: no endpoints found" serviceName=jade-shooter-service servicePort="&ServiceBackendPort{Name:,Number:30080,}" providerName=kubernetes ingress=jade-shooter namespace=default

I also posted this issue on rancher slack channel where @ericpromislow is able to reproduce this issue on Windows machine.

https://rancher-users.slack.com/archives/C0200L1N1MM/p1688382572421829

Please let me know if you need more details.

Rancher Desktop Version

1.9.1

Rancher Desktop K8s Version

v1.26.5

Which container engine are you using?

moby (docker cli)

What operating system are you using?

Windows

Operating System / Build Version

Windows 10 Enterprise 22H2 (Build 19045.2132)

What CPU architecture are you using?

x64

Linux only: what package format did you use to install Rancher Desktop?

None

Windows User Only

I have I have Zscaler VPN on my machine.

@amardeep2006 amardeep2006 added the kind/bug Something isn't working label Jul 4, 2023
@ericpromislow ericpromislow added the triage/confirmed Issue has been reproduced by dev team label Jul 4, 2023
@ericpromislow
Copy link
Contributor

See the Steps to Reproduce section above.

No problem running helm install js . and then hitting the endpoint on macOS. On Windows 10/WSL2 I ran into the same problem reported here - the endpoint didn't work, and the traefik logs suggested why.

@Nino-K
Copy link
Member

Nino-K commented Jul 4, 2023

@amardeep2006 is this with the experimental network enabled or disabled? I assume you had it enabled since you are behind a VPN?

@Nino-K
Copy link
Member

Nino-K commented Jul 4, 2023

Unfortunately, I cannot repro this, it works fine for me (using the experimental network).

Please see the screenshots attached.

Screen Shot 2023-07-04 at 9 37 26 AM
Screen Shot 2023-07-04 at 9 37 07 AM

@Nino-K Nino-K added triage/not-reproducible Not (or no longer) reproducible and removed kind/bug Something isn't working labels Jul 4, 2023
@Nino-K
Copy link
Member

Nino-K commented Jul 4, 2023

@amardeep2006 I'm going to close the issue, please try enabling the experimental network using the following:

rdctl set --experimental.virtual-machine.networking-tunnel=true

Feel free to reopen if you reencounter the issue.

@Nino-K Nino-K closed this as completed Jul 4, 2023
@jandubois
Copy link
Member

You can enable this inside the app preferences too: https://docs.rancherdesktop.io/1.9/ui/preferences/wsl/network

@amardeep2006
Copy link
Author

amardeep2006 commented Jul 5, 2023

Thanks a lot @jandubois @ericpromislow @Nino-K
This is working for me with Traefik ingress as well after enabling the experimental networking Tunnel.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage/confirmed Issue has been reproduced by dev team triage/not-reproducible Not (or no longer) reproducible
Projects
None yet
Development

No branches or pull requests

4 participants