Open alexstaroselsky opened 3 years ago
Exact same problem, trying to open traffic through an Istio Ingress Gateway.
@lucashimizu @alexstaroselsky Thank you for reporting this. This does seem like a bug, I would accept a PR from any isto experts to fix this !
same issue
Any updates on this?
any update on this?
This does indeed seem to be a bug with minikube tunnel
. We'd love some help pinning down what the exact issue is. Help wanted!
same for me with MacOS - 11.3.1 Docker - 20.10.5 Kubernetes - 1.20.2 Minikube - 1.19.0
With Hyperkit (v0.20210107-2-g2f061e) instead of Docker, it is running fine.
Same here. Two problems:
The minikube tunnel assigns some different IP and not 127.0.0.1
Not able to access even though individual services are working fine.
Also getting this issue
Windows Minikube - v1.20.0 Docker - v20.10.5
Related issues:
https://github.com/kubernetes/minikube/issues/10762 https://github.com/kubernetes/minikube/issues/10152 https://github.com/kubernetes/minikube/issues/10265
With Hyperkit (v0.20210107-2-g2f061e) instead of Docker, it is running fine.
How did you fix it? @martinknechtel
This is coming up as the 4th result on google for "minikube tunnel not working" and 3rd for "minikube tunnel not starting"
@medyagh @sharifelgamal how can we escalate this? Seems like a quite impactful bug with tunnel
. Tried a fresh install on my MacOS and it doesn't work on that either.
I found a solution
I had to expose a "LoadBalancer" in order for me to reach the app. This was mentioned nowhere on the docs.
Here's what I had to do.
my-ingress.yml
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: my-ingress
spec:
rules:
- http:
paths:
- pathType: Prefix
path: /
backend:
service:
name: hello-nodejs-service
port:
number: 80
my-service.yml
apiVersion: v1
kind: Service
metadata:
name: hello-nodejs-service
spec:
type: NodePort
ports:
- port: 80
targetPort: 80
protocol: TCP
selector:
app: hello-nodejs
my-deployment.yml
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-nodejs-deployment
spec:
replicas: 2
selector:
matchLabels:
app: hello-nodejs
template:
metadata:
labels:
app: hello-nodejs
spec:
containers:
- image: hello-nodejs:latest #you need to switch this with your own container image / or use a public docker image
imagePullPolicy: IfNotPresent
name: hello-nodejs
resources:
limits:
cpu: "500m"
memory: "256Mi"
ports:
- containerPort: 80
Apply the configs with `kubectl apply -f filename.yml
Then I had to run the following:
kubectl expose deployment my-deployment --type=LoadBalancer --port=80
after that was done
minikube tunnel
would start and output a message. It wasn't "hanging" It just had no deployment running
edit still having issues with this now
With Hyperkit (v0.20210107-2-g2f061e) instead of Docker, it is running fine.
How did you fix it? @martinknechtel
@AlbertMarashi The only pitfall I had on starting up minikube is broken DNS connection, but thats another problem ;-) Observation:
❯ minikube start
[...]
❗ This VM is having trouble accessing https://k8s.gcr.io
Solution:
minikube ssh
rm -f /etc/resolv.conf && echo nameserver 192.168.178.1 > /etc/resolv.conf #replace with your nameserver IP
I don't know why this wasn't mentioned in the docs anywhere, but you need to run the following before your ingress works
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.41.2/deploy/static/provider/cloud/deploy.yaml
After I ran this command, my endpoints were available on 127.0.0.1
If you are using hosts, don't forget to put them in your /etc/hosts
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/lifecycle rotten
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
Any updates on this?
I suspect this remains an issue, but we haven't had the bandwidth to look at this more closely. Help is of course wanted and we'd be happy to review any PRs that fix this.
I have the same issue
I have same issue with 'minikube tunnel' I ran this part of istio installation and sample application deployment
Having the same issue. MacOS 11.6, Docker. minikube installed via homebrew. Trying to follow istio's tutorial and the minikube tunnel
doesn't get past asking me for sudo
password.
Follow this guide
export INGRESS_HOST=$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
export INGRESS_PORT=$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.spec.ports[?(@.name=="http2")].port}')
export SECURE_INGRESS_PORT=$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.spec.ports[?(@.name=="https")].port}')
export TCP_INGRESS_PORT=$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.spec.ports[?(@.name=="tcp")].port}')
and then minikube tunnel
If there is a way to integrate the steps specified above into a PR in minikube's code directly, I would to review it.
/assign
After trying the code to export the host in the comment by @kty1965 I got the istio book info demo to work. I'm not sure if there is a problem with minikube or it is istio's docs. I was thrown off here when it says if the external-ip is pending that you should use the nodeport. It is pending until you start the tunnel. After, in my case on a Mac, the external-ip is no longer "pending" but 127.0.0.1.
It seems to me that minikube tunnel
is doing what it is expected to do albeit not printing anything after entering the root password. What I wonder is, as per istio's docs, should I be able to use the node port and the ip provided by minikube ip
?
any update on this ?
While minikube seems to be starting and running effectively with
minikube start
, I am unable to successfully execute the commandminikube tunnel
. After entering the password and waiting a significant amount of time, no output similar to what is show on Accessing apps displays nor does the minikube ip seem to be responsive. The last message to display with logging verbosity level 2 isPatched istio-ingressgateway with IP 127.0.0.1
. I've tried running withsudo
as well, but same hanging.This is using the default kube config generated from
minikube start
. Minikube was installed via homebrew.System: MacOS - 11.1 Docker - 20.10.0 Kubernetes - 1.19.3 Minikube - 1.16.0
Steps to reproduce the issue:
minikube start
minikube tunnel --alsologtostderr --v=2
Full output of failed command:
Full output of
minikube start
command used, if not already included:Optional: Full output of
minikube logs
command: