-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
nginx ingress not working with grpc services #5886
Comments
You don't have a TLS section, without that GRPC will not work. #4095 (comment) |
@Rahul7794 do you have more services? Why are you not defining a |
@aledbf I have updated the Ingress YAML file. I have added the TLS section and still, I am facing the same issue. my ingress yml file looks like:
I have a grpc client written in go, and when I hit the server with the alb arn on port 443 it still return 400 I tried port forwarding and port forwarding was working fine. But not the ingress. When I describe ingress, I get following result
|
@Rahul7794 I cannot reproduce the issue Create a cluster using kind: https://kind.sigs.k8s.io/docs/user/ingress/#create-cluster
|
@aledbf the grpc curl is done from the cluster right? |
No, my machine (kind cluster is exposing ports 80 and 443 with hostPort) |
I am getting |
Please check the kind links |
@aledbf I tried the Ingress definition :
but still ending up getting and even I don't get any logs of incoming request on my ingress controller |
@Rahul7794 Hey, we are having an identical issue on AWS. From the testing we have done, it seems like an AWS specific nginx deployment may be the problem (https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.34.1/deploy/static/provider/aws/deploy.yaml). Are you using AWS? Have you made any progress? |
@sbsends hey, Yes I am using AWS, and I haven't made any progress on the issue, I cannot just make it work. |
@sbsends you can also refer here for Envoy setting if you are looking to move ahead with other Ingresses. |
May want to set a specific path value for the grpc service that aligns with the proto file. Currently you have an empty path value or Examples:
This allows the ingress to route the grpc requests specifically to the service. In this case the ingress class annotations are not complete whereas here they are present. May also need to add |
Your gRPC working with a secure channel ?! |
Client side workaround which worked for me: #4622 (comment). |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
I am getting the same issue |
Me too. GRPC Web works though. A real pain |
I am trying to get nginx ingress running as a Reverse proxy for my gRPC service.
my deployment.yml file looks like
my svc.yml file looks like
my ingress.yml file looks like
When I do get ingress I get
When I hit the alb arn with port 80, then I get 400 error similar to this
"PRI * HTTP/2.0" 400 157 "-" "-" 0 0.040 [] [] - - - - 9098e278e6c5ee7e1a2a4ecf02c6c2a1
Can any mistakes be pointed in the yml files of ingress deployment. It will be very helpful to get this thing running.
The text was updated successfully, but these errors were encountered: