-
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
Support grpc_read_timeout
and grpc_send_timeout
in annotations
#11250
Comments
i'd like to contribute if it's ready to implement |
/triage accepted
|
/assign |
@longwuyuan yes, i have read the docs and read to create a PR. I refer to exsiting proxy settings to create 3 annotations for grpc timeout, please take a look, #11258 I'll refine the documentation later.
|
/priority backlog |
This is stale, but we won't close it automatically, just bare in mind the maintainers may be busy with other tasks and will reach your issue ASAP. If you have any question or request to prioritize this, please reach |
Hi @strongjz , maybe this should be noted as breaking change in release notes for 1.11
and after upgrade from 1.10 to 1.11 we ended up with these errors:
In the
We will switch from snippet to annotations to fix this, but I think it's better to know about this from release notes. |
So we may need a 'merge' mechanism to ensure the annotations and snippets can work together, if there is a duplicate config. Then, we can migrate the snippets to annotations. (if we create more annotations) |
Yeah, that's another option how to deal with it (except "breaking change" note) Possible merge mechanism - just don't apply default values from annotations when GRPC is used? |
ok, the solution 1 would be safer -- add new annotations, it doesn't break the existing "configurations", you can add new annotations and remove snippets at the same time. how do you think? @tao12345666333 @longwuyuan |
Sorry guys, but that is a really breaking change not mentioned in any changelogs. |
@sepich it's because of duplicities in nginx.conf - in case you set grpc timeouts in |
Thank you, I know why it happend. |
I raised issue #11866 |
@Anddd7 that would be absolutely marvellous |
We are in the process of upgrading our clusters to the latest version and have encountered this problem. For each cluster we have about 50 ingress resources that have grpc_read_timeout configured as a snippet. Is there a recommended strategy for handling the upgrade to 1.11 for a large number of ingress resources? |
@jon-rei we are also in the process of upgrading worse thing is that the default for |
What do you want to happen?
We want to configure the
grpc_read_timeout
andgrpc_send_timeout
with annotations on ingress.Since the
server-snippet
has some potential risk, we have to migrate all snippets to common annotations.https://github.com/search?q=repo%3Akubernetes%2Fingress-nginx+path%3A%2F%5Einternal%5C%2Fingress%5C%2Fannotations%5C%2F%2F+parser.AnnotationRiskCritical&type=code
Is there currently another issue associated with this?
#2475, but it's inactive and closed.
Does it require a particular kubernetes version?
No
Solutions
1. Add new annotations, e.g.
2. Set
grpc_read_timeout
andgrpc_send_timeout
with the same value inproxy_read_timeout
Similar like nginx-ingress-controller, just set grpc with proxy settings by default
The text was updated successfully, but these errors were encountered: