Comments (6)
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 tar.gz
format, which is what the code in maxmind.go
suggests, but I then get:
I0325 12:55:13.424947 7 flags.go:387] "downloading maxmind GeoIP2 databases"
E0325 12:55:13.770916 7 maxmind.go:74] GeoLite2-City.mmdb not found
E0325 12:55:13.794877 7 maxmind.go:74] GeoLite2-City.mmdb not found
from ingress-nginx.
This issue is currently awaiting triage.
If Ingress contributors determines this is a relevant issue, they will accept it by applying the triage/accepted
label and provide further guidance.
The triage/accepted
label can be added by org members by writing /triage accepted
in a comment.
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.
from ingress-nginx.
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?
from ingress-nginx.
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
tar.gz
format, which is what the code inmaxmind.go
suggests, but I then get:I0325 12:55:13.424947 7 flags.go:387] "downloading maxmind GeoIP2 databases" E0325 12:55:13.770916 7 maxmind.go:74] GeoLite2-City.mmdb not found E0325 12:55:13.794877 7 maxmind.go:74] GeoLite2-City.mmdb not found
Can you post a snippet of your deployment manifest?
from ingress-nginx.
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?
What is the expected format for --maxmind-mirror
?
Is it a URL pointing to the database in a .tar.gz format?
Or do you have to use https://www.npmjs.com/package/maxmind-geolite-mirror?
from ingress-nginx.
I set a plain URL for the maxmind mirror parameter and had both required databases named like GeoLite2-City.tar.gz
GeoLite2-ASN.tar.gz
but perhaps the requirement was to have both databases in a single tar.gz file named in a similar convention to the real maxmind download servers instead? I don't think I tried that, we have worked around this anyway by signing up for a 2nd maxmind account, if I get round to testing this I will report back
from ingress-nginx.
Related Issues (20)
- CVE-2023-44487 - is the patch for this CVE included in controller-v1.8.4 HOT 4
- no tcp: {} option - instead spec.listeners{} in the last helm chart values HOT 3
- service/ingress-nginx-controller annotation HOT 7
- Controller failed to renew lease (leader election) due to timeout until pod restart HOT 6
- Modsecurity log dosent use $request_id from nginx when modsec blocks (403) HOT 16
- registry.k8s.io/ingress-nginx/controller:v1.10.0 has no s390x arch in the image manifest HOT 4
- helm-chart 4.10.1 seems to be missing in the repo despite being recommended in the `README.md` HOT 5
- 400 Bad Request is getting changed to 500 Internal Server Error while using custom nginx error HOT 4
- Add ppc64le support for registry.k8s.io/ingress-nginx/controller HOT 5
- certificate resource has no owner. refusing to update non-owned certificate resource for object HOT 3
- ACME challenge fails with `nginx.ingress.kubernetes.io/permanent-redirect` HOT 13
- Annotation whitelist-source-range not using client real IP HOT 8
- geoip2 enabling causes crash of controller v1.10 HOT 17
- Custom error_page redirects not working HOT 1
- The ingress-nginx controller crashes due to `unknown directive "alias"` when using global snippets. HOT 5
- Custom error_page redirects not working HOT 3
- Not able to install ingress-nginx helm chart in private AKS clusters HOT 6
- Ingress Test Fails to Route Traffic to a Deployment in Browser HOT 3
- Removing NET_BIND_SERVICE cap from ingres-nginx as part of nonroot, ingress pod in crashlooopbackoff HOT 3
- 499 reflect on service HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ingress-nginx.