Skip to content

vadikgo/nginx-lua-healthcheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nginx based healthcheck for external services

Use LUA nginx for a simple healthchek for multiple sites

Run in docker example

docker build -t nginx-lua .
docker run -d --name nginx --rm -p 8080:8080 -v ${PWD}/nginx.default.d:/opt/app-root/etc/nginx.default.d nginx-lua
curl http://localhost:8080/healthcheck-targets
curl -w "%{http_code}" http://localhost:8080/healthcheck
docker stop nginx

Sites to check is defined in location /healthcheck-targets as json.

Primary use case is to check microservices in Kubernetes for an external load balancer.

Use additional LUA libraries (git subtree add --prefix lua-libs/xxxx [email protected]:yyyy/xxxx.git master --squash):

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published