-
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
istio-ingressgateway: tunnel doesn't start #10085
Comments
Exact same problem, trying to open traffic through an Istio Ingress Gateway. |
@lucashimizu @alexstaroselsky |
same issue |
Any updates on this? |
any update on this? |
This does indeed seem to be a bug with |
same for me with |
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 |
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.
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
apiVersion: v1
kind: Service
metadata:
name: hello-nodejs-service
spec:
type: NodePort
ports:
- port: 80
targetPort: 80
protocol: TCP
selector:
app: hello-nodejs
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: edit |
@AlbertMarashi The only pitfall I had on starting up minikube is broken DNS connection, but thats another problem ;-) Observation:
Solution:
|
I don't know why this wasn't mentioned in the docs anywhere, but you need to run the following before your ingress works 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 |
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:
You can:
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 |
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 |
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:The text was updated successfully, but these errors were encountered: