-
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
GeoIP2 auto_reload doesn't work #11360
Comments
/triage accepted I suspect that geoip1 was accepting int value but i think upstream changed and that geoip2 module expects |
/assign |
@isniukArte did you use geoip1 earlier ? |
@rikatz @tao12345666333 @cpanato @strongjz The nginx.tmpl in the image is not even containing the if condition for the reload value But the src of the base image has the if condition
So this is confirmed a bug. The annotation https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/#geoip2-autoreload-in-minutes is definitely broken /priority important-soon |
/remove-priority important-longterm |
ok, the root-cause is clear now. The PR #11079 that introduces that if condition for the reload time is not cherry-picked into the branch release-1.10, from which this controller version was released @Gacko @strongjz @rikatz @tao12345666333 @cpanato Please comment on chery-picking PR #11079 (or using another way) to pull these changes to the branch release-1.10 |
Nope, but I think it already doesn't matter. |
This is not a feature of the latest release. There has been some trouble with the tag, but the actual release and the according release branch /close |
@Gacko: Closing this issue. In response to this:
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-sigs/prow repository. |
I saw that it wasn't mentioned in the release notes. |
The documentation is built on the |
What happened:
After update to the newest version, I added geoip2-autoreload-in-minutes option in ConfigMap.
apiVersion: v1 data: allow-snippet-annotations: "true" geoip2-autoreload-in-minutes: "2" use-geoip2: "true" ... kind: ConfigMap metadata: name: ingress-nginx-controller namespace: ingress-nginx
But in nginx.conf I still can't find a line with auto_reload param:
` # https://github.com/leev/ngx_http_geoip2_module#example-usage
What you expected to happen:
I can't detect the problem. I expect it to work according to #11079 which was a part of the latest release. I saw no related errors in logs on startup.
NGINX Ingress controller version (exec into the pod and run nginx-ingress-controller --version.):
NGINX Ingress controller
Release: v1.10.1
Build: 4fb5aac
Repository: https://github.com/kubernetes/ingress-nginx
nginx version: nginx/1.25.3
Kubernetes version (use
kubectl version
):Client Version: v1.27.4
Kustomize Version: v5.0.1
Server Version: v1.28.5
Environment:
uname -a
):Helm wasn't used. Nginx was installed with our own solution. deploy.yaml was applied.
Arguments:
--maxmind-mirror=https://working-mirror.local,
--maxmind-edition-ids=GeoLite2-City,GeoLite2-ASN,GeoLite2-Country
How to reproduce this issue:
I tried it on minikube. Installed nginx by applying command from the description. Next added a secret with my MaxMind license key and edited deployment and cm.
ConfigMap:
Behavior is the same.
The text was updated successfully, but these errors were encountered: