-
Notifications
You must be signed in to change notification settings - Fork 95
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
zone "invalid-backend-ref" is too small #1794
Comments
Hi @LongStoryMedia! Welcome to the project! 🎉 Thanks for opening this issue! |
Hi @LongStoryMedia ! Couple of clarifying points if you don't mind:
Thanks so much! |
Hey @ciarams87 ,
|
Some implementation notes: If there 0 Endpoints, NGF will generate:
if backend doesn't exist (svc doesn't exist), NGINX will generate (for all such cases):
So One approach to increase the zone is to just not specify. In that case, NGINX will not share upstream state across backends. Which is ok for that upstream, since we only proxy to one destination. https://nginx.org/en/docs/http/ngx_http_upstream_module.html#zone |
Describe the bug
the invalid-backend-ref size of 32k is too small for some environments causing an inability of the gateway to program.
To Reproduce
curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="server --disable=traefik" K3S_NODE_NAME="${MASTER_NODE_NAME}" sh -s - --flannel-backend=wireguard-native --token ${TOKEN} --write-kubeconfig-mode 600
)kubectl apply -f https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.0.0/standard-install.yaml
helm install nginx-gateway oci://ghcr.io/nginxinc/charts/nginx-gateway-fabric --create-namespace -n nginx-gateway
(also tried with manifests directly) with no modificationsExpected behavior
Either the smallest possible zone size is determined and implemented at runtime, or something like 128k - 512k is used instead here:
nginx-gateway-fabric/internal/mode/static/nginx/config/upstreams.go
Line 25 in 03e24fe
Your environment
kubectl -n nginx-gateway logs -l app=nginx-gateway -c nginx
kubectl -n nginx-gateway exec <gateway-pod> -c nginx -- nginx -T
Additional context
using a shell session, vi, and
nginx -T
, I was able to determine that the smallest zone size it would accept was 128kcurrent workaround is to set
nginxGateway.image.tag
to 1.1.0The text was updated successfully, but these errors were encountered: