Open kate-osborn opened 7 months ago
A possible way to create a similar error of : {"level":"error","ts":"2024-06-13T18:49:14Z","logger":"eventLoop.eventHandler","msg":"Failed to update NGINX configuration","batchID":16,"error":"failed to reload NGINX: reload unsuccessful: no new NGINX worker processes started for config version 5. Please check the NGINX container logs for possible configuration issues: context deadline exceeded","stacktrace":"github.com/nginxinc/nginx-gateway-fabric/internal/mode/static.(*eventHandlerImpl).HandleEventBatch\n\t/home/runner/work/nginx-gateway-fabric/nginx-gateway-fabric/internal/mode/static/handler.go:223\ngithub.com/nginxinc/nginx-gateway-fabric/internal/framework/events.(*EventLoop).Start.func1.1\n\t/home/runner/work/nginx-gateway-fabric/nginx-gateway-fabric/internal/framework/events/loop.go:74"}
is by deploying on Openshift, deploying any example, deleting the resources, and waiting a little while. This is also fixed by setting allowPrivilegeEscalation
to true.
Describe the bug In some environments, the NGINX Gateway Fabric fails to report as ready. The
nginx-gateway
logs report an error reloading NGINX:This is due to the control plane now having the proper permissions to reload NGINX.
Workaround
To resolve this issue you will need to set
allowPrivilegeEscalation
totrue
.If using Helm, you can set the
nginxGateway.securityContext.allowPrivilegeEscalation
value. If using the manifests directly, you can update this field under thenginx-gateway
container’s securityContext.Open Questions
kind
or any managed Kubernetes platform. How can we reproduce?Related issues: