-
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
Impact of Maxmind R2 presigned URLs #11146
Comments
This issue is currently awaiting triage. If Ingress contributors determines this is a relevant issue, they will accept it by applying the The 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. |
Maxmind have also recently introduced a download limit of 30 times per 24 hours (for the free editions), this means if you are running several ingresses + nginx instances requiring the database you can hit this limit quite quickly, I tried to work around this by setting an extra arg to the ingress controller for maxmind mirror, but this does not seem to work, I have uploaded the databases to a custom location and they are in
|
Looks like it does download the db in the flag processing, like your logs say https://github.com/kubernetes/ingress-nginx/blob/main/pkg/flags/flags.go#L400 It should error out @ufou if there is an issue with the download. Can you exec into the container and see if the file does exist? |
Can you post a snippet of your deployment manifest? |
What is the expected format for |
I set a plain URL for the maxmind mirror parameter and had both required databases named like |
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 |
Sorry for the delayed response, we thought we'd found a work around for this but actually we haven't - we just didn't hit our limit of daily downloads in a while, except today we were doing some rolling node updates, so consequently all the ingress pods got re-homed and then we hit the maxmind license limit. So, when I override the mirror using ingress-nginx/internal/nginx/maxmind.go Line 141 in cee3fb3
But the logs say the db cannot be found:
and indeed they are not present, there is no
I enabled debug logging for the controller but it gave no clues, I'd like to help resolve this, are there some hints about how to print more info on the controller bootup of GeoIP? |
I rebuilt the docker image and enabled some debug lines, and the download appears to work now, I think this was down to 2 things:
|
Hi Team,
As mentioned in the below url:
https://dev.maxmind.com/geoip/release-notes/2024#presigned-urls-for-database-downloads
Maxmind will start using presigned URL and will be applied by 1st May.
If we see the code of K8s Nginx Ingress Controller, url is hard-coded as https://download.maxmind.com/app/geoip_download?license_key=%v&edition_id=%v&suffix=tar.gz
https://github.com/kubernetes/ingress-nginx/blob/main/internal/nginx/maxmind.go#L62
Have few questions ?
Thanks
Vinay
The text was updated successfully, but these errors were encountered: