fix geoip2 configuration docs (#11151)

Co-authored-by: dVerhees <30548963+dVerhees@users.noreply.github.com>
This commit is contained in:
k8s-infra-cherrypick-robot 2024-03-24 16:42:21 -07:00 committed by GitHub
parent 13f8b28251
commit 3230e4abbc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -730,7 +730,7 @@ _**default:**_ true
Enables the [geoip2 module](https://github.com/leev/ngx_http_geoip2_module) for NGINX. Enables the [geoip2 module](https://github.com/leev/ngx_http_geoip2_module) for NGINX.
Since `0.27.0` and due to a [change in the MaxMind databases](https://blog.maxmind.com/2019/12/18/significant-changes-to-accessing-and-using-geolite2-databases) a license is required to have access to the databases. Since `0.27.0` and due to a [change in the MaxMind databases](https://blog.maxmind.com/2019/12/18/significant-changes-to-accessing-and-using-geolite2-databases) a license is required to have access to the databases.
For this reason, it is required to define a new flag `--maxmind-license-key` in the ingress controller deployment to download the databases needed during the initialization of the ingress controller. For this reason, it is required to define a new flag `--maxmind-license-key` in the ingress controller deployment to download the databases needed during the initialization of the ingress controller.
Alternatively, it is possible to use a volume to mount the files `/etc/nginx/geoip/GeoLite2-City.mmdb` and `/etc/nginx/geoip/GeoLite2-ASN.mmdb`, avoiding the overhead of the download. Alternatively, it is possible to use a volume to mount the files `/etc/ingress-controller/geoip/GeoLite2-City.mmdb` and `/etc/ingress-controller/geoip/GeoLite2-ASN.mmdb`, avoiding the overhead of the download.
!!! important !!! important
If the feature is enabled but the files are missing, GeoIP2 will not be enabled. If the feature is enabled but the files are missing, GeoIP2 will not be enabled.