https://github.com/dmportella/kubernetes-docker-golang
A simple project - go lang hello world containerized with docker and managed by kubernetes.
https://github.com/dmportella/kubernetes-docker-golang
balancing docker docker-image dockerhub golang-site health-check kubernetes kubernetes-docker-golang learning-by-doing load load-testing rancher
Last synced: 2 months ago
JSON representation
A simple project - go lang hello world containerized with docker and managed by kubernetes.
- Host: GitHub
- URL: https://github.com/dmportella/kubernetes-docker-golang
- Owner: dmportella
- License: mit
- Created: 2015-11-03T15:52:34.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-12T13:03:22.000Z (about 10 years ago)
- Last Synced: 2025-07-10T01:37:28.419Z (11 months ago)
- Topics: balancing, docker, docker-image, dockerhub, golang-site, health-check, kubernetes, kubernetes-docker-golang, learning-by-doing, load, load-testing, rancher
- Language: Go
- Homepage: https://twitter.com/dmportella
- Size: 2.12 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# kubernetes-docker-golang
Simple golang web site using mux to run on KUBERNETES or RANCHER and other docker management platforms.
[](https://travis-ci.org/dmportella/kubernetes-docker-golang)
## DOCKERHUB
[](https://hub.docker.com/r/dmportella/golangweb/)
## GOLANGWEB
Simple golang site with route to simulate site failure.
Built for testing *kubernetes* and *rancher* instances.
### Normal route
Web site should be available on port `8080`.
### Health check
```
GET /__health
{
version: "1.0.0",
status: "OK"
}
```
#### routes
* Health check url.: `/__health/`
* Set to throw 500: `/__health/throw500`
* Set to time out: `/__health/timeout`
* Set kill the process: `/__health/killprocess`
## Building
The shell file `build.sh` will run npm install, install and run grunt and it will build and run the docker image.
> $ `./build.sh`
Builds docker image and tags it.
> $ `./build-image.sh`
* Installs godep and other setup things
> $ `./setup.sh`