-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from viadee/feat-32/add-k8s-config
Feat 32/add k8s config
- Loading branch information
Showing
4 changed files
with
18 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,27 @@ | ||
# Simple demo app for k8s | ||
The goal is to have a simple app which can be used to demonstrate some features you can use in k8s. | ||
|
||
The goal is to have a simple app that can be used to demonstrate some features you can use in k8s. | ||
|
||
This demo app uses spring boot and a h2-database as technologies. | ||
|
||
## Features | ||
- endpoint for heath check, which can be controled via environment variable | ||
- endpoint for readiness check, which can be controled via rest endpoint | ||
|
||
- endpoint for a health check, which can be controlled via environment variable | ||
- endpoint for a readiness check, which can be controlled via rest endpoint | ||
- background-color and some text customizable via spring config | ||
|
||
## Running | ||
|
||
Run with docker | ||
```shell | ||
docker run -p 8080:8080 viadee/k8s-demo-app:latest | ||
``` | ||
|
||
Then browse to ```http://localhost:8080``` | ||
Then browse to `http://localhost:8080` | ||
|
||
## Building | ||
This is a simple maven project. Just run ```maven package```. | ||
|
||
Or just do a local docker build: ```docker build -t imagename .``` | ||
This is a simple maven project. Just run `maven package`. | ||
|
||
Or just do a local docker build: `docker build -t imagename .` | ||
Then you can run the container locally. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters