Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joatmon08/hello
Quick hello world application with two ports.
https://github.com/joatmon08/hello
Last synced: 2 days ago
JSON representation
Quick hello world application with two ports.
- Host: GitHub
- URL: https://github.com/joatmon08/hello
- Owner: joatmon08
- Created: 2018-01-17T04:03:26.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2023-01-20T19:49:27.000Z (almost 2 years ago)
- Last Synced: 2024-11-03T07:02:35.667Z (about 2 months ago)
- Language: Ruby
- Size: 3.06 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# joatmon08/hello
Just a simple app, serving on two ports. Use for multi-post testing.
| Port | URI | Description |
| --------- |-------- | ----------- |
| :8001 | /version | Returns version |
| :8001 | /hello | Returns Hello World |
| :8001 | /phone?targetService=nginx | Expects to call a service denoted by targetService and get a return. Default: nginx. |
| :8001 | /cpu?testTime=1m | Generates CPU load for the specified testTime. Default: 1m. |
| :8002 | /health | Returns I'm healthy! |## Build
Run `go build main.go` to build the binary.## Run
To run as a container, use
`docker run -d -p 8001:8001 -p 8002:8002 joatmon08/hello:latest`.## Deploy to Kubernetes
Run `kubectl apply -f kubernetes.yml`.