A Simple go web server that returns a bit of useful data for testing Kubernetes nodes.
1.3K
https://github.com/cjimti/go-ok
A Simple go web server that returns a bit of useful data for testing Kubernetes nodes.
# run version 1
docker run --rm -p 8080:8080 GIN_MODE=release cjimti/go-ok:v1
# run version 2
docker run --rm -p 8080:8080 GIN_MODE=release cjimti/go-ok:v2
Browse to http://localhost:8080
{
"client_ip": "172.17.0.1",
"count": 3,
"message": "ok",
"time": "2018-03-05T08:38:03.936996398Z",
"uuid_call": "dddb3561-7273-45ee-5f80-7b022d2bf2e9",
"uuid_instance": "79defbd7-690e-4fc7-5652-354e1662ff7c",
"version": 2,
"version_msg": "version 2"
}
go get github.com/gin-gonic/gin
go get github.com/nu7hatch/gouuid
GIN_MODE=release go run ./ok.go
docker build -t go-ok .
Content type
Image
Digest
Size
6.7 MB
Last updated
over 8 years ago
docker pull cjimti/go-ok