liveness-probe-api

command module
v0.0.0-...-1ad65a5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2019 License: MIT Imports: 6 Imported by: 0

README

liveness-probe-api

API server supports routes for liveness, readness, startup probes

Docker images at: https://hub.docker.com/repository/docker/ledongthuc/liveness-probe-api

Quickstart

Run server with docker

docker run -p 8080:8080 ledongthuc/liveness-probe-api

Make requests to service 6 times

curl -I http://localhost:8080/liveness_probe_status && \
curl -I http://localhost:8080/liveness_probe_status && \
curl -I http://localhost:8080/liveness_probe_status && \
curl -I http://localhost:8080/liveness_probe_status && \
curl -I http://localhost:8080/liveness_probe_status && \
curl -I http://localhost:8080/liveness_probe_status

Notes

If you want change the number of first successful requests, use environment NO_SUCCESS

docker run -e NO_SUCCESS=10 -p 8080:8080 ledongthuc/liveness-probe-api

Want to run/build with Golang, check Makefile

make build
make run

Feel free to PR

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL