-
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
Allow run time updating of GeoIP databases #2100
Comments
@Stono what we can do is to change the path of the files to a directory like |
@aledbf that makes sense, but then how would that side car trigger an nginx -s reload when the db changes? |
I was thinking to just wait until the next event that triggers an update in the controller |
@Stono or run nginx -s reload using |
hmm then i'd have to give the sidecar RBAC access to exec pods on kubectl which feels a bit wrong ;'( |
@Stono ok, then I can add another notify listener for the geoip directory and trigger a reload like here https://github.com/kubernetes/ingress-nginx/blob/master/internal/ingress/controller/nginx.go#L170 |
Ahh great idea @aledbf - leave it with me and I'll (try) to do a PR! |
OK @aledbf - gave it my best shot! See the attached PR |
can this help, the feature is already provided by geoip2 module, can we exploit that.
|
Hey,
At the moment, the following GeoIP databases are downloaded as part of the nginx base image build:
These databases get updated (GeoIPASNum more than others), and I think it'd be nice to find a way to update this outside the update cycle of
ingress-nginx
I'm unsure however, the best way to do this so didn't want to implement a PR without talking it through first. I see the following options:
--update-geo-ip
, which downloads these files every time the container boots, or if they're over some arbitrary age.nginx -s reload
I'm totally open to ideas?
The text was updated successfully, but these errors were encountered: