Skip to content

trueck/java-api-services-docker-k8s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To build and run and test the services with docker compose

  1. Start Docker Desktop

  2. Build services:

./build.sh

  1. Build docker images:

./dockerBuild.sh

  1. Test services using docker-compose

./test-em-all-docker.sh start stop

  1. other commands for docker compose
./dockerStart.sh
./dockerStop.sh
./whatsRunningDocker.sh

To run and test the services with k8s (minikube):

  1. start minikube if it is not up:

minikube start

  1. Create a name space:

kubectl create namespace hands-on

  1. Activate ns

kubectl config set-context $(kubectl config current-context) --namespace=hands-on

  1. Link docker with Minikube

eval $(minikube -p minikube docker-env)

  1. build the images again so that minikube can see those images

./dockerBuild.sh

  1. Deploy k8s using customize

kubectl apply -k kubernetes/services/overlays/dev

  1. Check if all pod are ready

kubectl wait --timeout=600s --for=condition=ready pod --all

  1. From localhost to access k8s service by getting url:

minikube service product-composite --url -n hands-on

  1. Test services in k8s

HOST=127.0.0.1 PORT=56906 ./test-em-all-docker.sh

  1. Remove services

kubectl delete -k kubernetes/services/overlays/dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors