https://github.com/ledongthuc/liveness-probe-api
API server supports routes for liveness, readness, startup probes
https://github.com/ledongthuc/liveness-probe-api
docker docker-image
Last synced: 3 months ago
JSON representation
API server supports routes for liveness, readness, startup probes
- Host: GitHub
- URL: https://github.com/ledongthuc/liveness-probe-api
- Owner: ledongthuc
- License: mit
- Created: 2019-12-03T19:12:25.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-03T20:04:19.000Z (over 6 years ago)
- Last Synced: 2025-08-13T11:18:31.738Z (11 months ago)
- Topics: docker, docker-image
- Language: Go
- Homepage: https://hub.docker.com/repository/docker/ledongthuc/liveness-probe-api
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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