Skip to content

Latest commit

 

History

History
73 lines (50 loc) · 1.53 KB

File metadata and controls

73 lines (50 loc) · 1.53 KB

nginx-reverse-proxy-in-k8s-in-docker Build Status

Example of nginx reverse proxy in k8s in Docker for Mac / Windows or by using kind (Kubernetes in Docker) tool on Linux

Table of content

Local development

Build locally

./mvnw

Run locally

java -jar webapp/target/*.jar

Run tests

http  get :8080
http post :8080/maksimko

Docker development

Build docker image

docker build -t daggerok/webapp -f docker/Dockerfile webapp

Run in docker

docker run -i --rm --name native-app -p 8080:8080 daggerok/webapp

k8s

after docker image was built

Create k8s deployment

kubectl apply -f k8s/

Delete k8s deployment

kubectl delete -f k8s/

TODO...

Resources