-
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
Exposing endpoint with "minikube service <svc>" does not work #14097
Comments
Update:
Secondly, doing a loadbalancer deployment as described in https://minikube.sigs.k8s.io/docs/start/ works as well:
--> Opening http://localhost:8080/ in browser showed expected output. So, seems like problem is just related to |
hi @anowak-ct Could you help verify whether #13806 address this issue? |
Hi @anowak-ct, did you have a chance to see if #13806 helps resolve this issue? |
I tested the new documentation, but it did not seem to resolve the issue for me.
😄 minikube v1.25.2 on Microsoft Windows 10 Enterprise 10.0.19042 Build 19042
✨ Automatically selected the docker driver
👍 Starting control plane node minikube in cluster minikube
🚜 Pulling base image ...
🔥 Creating docker container (CPUs=2, Memory=8100MB) ...
❗ This container is having trouble accessing https://k8s.gcr.io
💡 To pull new external images, you may need to configure a proxy: https://minikube.sigs.k8s.io/docs/reference/networking/proxy/
🐳 Preparing Kubernetes v1.23.3 on Docker 20.10.12 ...
▪ kubelet.housekeeping-interval=5m
▪ Generating certificates and keys ...
▪ Booting up control plane ...
▪ Configuring RBAC rules ...
🔎 Verifying Kubernetes components...
▪ Using image gcr.io/k8s-minikube/storage-provisioner:v5
🌟 Enabled addons: storage-provisioner, default-storageclass
🏄 Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default kubectl create deployment hello-minikube --image=k8s.gcr.io/echoserver:1.4
kubectl expose deployment hello-minikube --type=NodePort --port=8080 I ran
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
hello-minikube NodePort 10.97.188.166 <none> 8080:30462/TCP 3m1s
kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 4m6s
http://192.168.49.2:30462
🏃 Starting tunnel for service hello-minikube.
❗ Because you are using a Docker driver on windows, the terminal needs to be open to run it. I'm running in PowerShell 7.2.4 and this command failed since So I ran
Leaving that terminal window open, navigating to http://192.168.49.2:30462 nor http://127.0.0.1:30462 nor http://localhost:30462 seems to work. However, running |
@BradKnowles thank you, it worked 🎉 |
Hi @anowak-ct, are you able to try the workaround that @BradKnowles suggested in his comment above? |
Hi @klaases, yes as I mentioned in my update comment, port forwarding works, however, using a tunnel or On an unrelated note, I am switching to the minikube hyper-v driver on windows. A colleague of mine face lots of issues with docker. hyper-v works better ... |
What Happened?
I am new to k8s and minikube. I followed the install instructions for windows,. Unfortunately, I cannot get the "echoserver" test to work as outlined in https://minikube.sigs.k8s.io/docs/handbook/controls/
I am using cygwin in Windows 10 (latest updates installed) with
alias kubectl='minikube kubectl --'
Docker is using WSL2
Steps and output:
minikube start
minikube dashboard
--> This worked fine. I can use the K8s UI in the browser
minikube service hello-minikube
--> This opened my browser with url http://192.168.49.2:32473/ but it could not connect (connection timeout). I did not close the terminal and the command was still running.
kubectl get service -o wide
(The commandminikube service hello-minikube
was still running)minikube logs --file=log.txt
--> See log attached
netstat -na | grep 32473
--> no output. Hence, port was not occupied.
Observations
The minikube.log is showing lots of errors or failures. I cannot tell which are benign which are real errors. However, I noticed messages which do sound like errors to me:
==> kubelet <==
==> kube-proxy <==
Running
minikube tunnel
did not work either.I read in some blogs that there might be problems with Docker and WSL2....? I am using Docker alone in other projects with no problems whatsoever.
Any help is greatly appreciated.
Attach the log file
log.txt
Operating System
No response
Driver
No response
The text was updated successfully, but these errors were encountered: