Skip to content
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

Script anti_ddos_challenge.lua fails health check leading to crashing nginx-ingress-controller pods #68

Open
nikhilbabaria07 opened this issue May 28, 2021 · 1 comment

Comments

@nikhilbabaria07
Copy link

Script anti_ddos_challenge.lua fails health check leading to crashing nginx-ingress-controller pods

Issue Description

I mounted the script to the nginx-ingress-controller pod and added the external lua script based on the installation steps mentioned in the doc. But unfortunately, pods are crashing leaving below error:

	/tmp/anti_ddos_challenge.lua:2525: in main chunk, client: unix:, server: , request: "GET /is-dynamic-lb-initialized HTTP/1.1", host: "nginx-status"
2021/05/27 10:56:33 [warn] 599#599: *410 [lua] _G write guard:12: __newindex(): writing a global lua variable ('set_cookies') which may lead to race conditions between concurrent requests, so prefer the use of 'local' variables
stack traceback:
	/tmp/anti_ddos_challenge.lua:3292: in main chunk, client: unix:, server: , request: "GET /is-dynamic-lb-initialized HTTP/1.1", host: "nginx-status"
E0527 10:56:33.857930       6 checker.go:57] healthcheck error: 503
---g82GBbwu---A--

Versions:

  • Browser(s): N/A
  • Nginx version: quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.24.1
@nikhilbabaria07
Copy link
Author

Following up to check if anyone has a solution for the problem I am facing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant