Reputation: 6793
As per these two issues on ingress-nginx
Github, it seems that the only way to get grpc/http2 working on port 80 without TLS is by using a custom config template:
Unfortunately I could not find any straightforward examples on how to set-up a custom nginx-ingress config. Here are the links I tried:
Can anyone help me with the exact steps and config on how to get grpc/http2 working with nginx-ingress on port 80 without TLS?
Upvotes: 2
Views: 5260
Reputation: 13928
This is a community wiki answer posted for better visibility. Feel free to expand it.
As already mentioned in the comments, the steps to make it work are as follows:
Launch a separate nginx controller in an empty namespace to avoid issues with the main controller.
Create custom templates, using these as a reference.
Put them in a ConfigMap
like this.
Mount the templates into the controller pod as in this example.
Upvotes: 2