This is the repository for the following stories:
- https://medium.com/@simionrazvan/simple-spring-boot-microservice-deployed-in-kubernetes-using-docker-and-nexus-part-1-b581e3ca8916
- https://medium.com/@simionrazvan/simple-spring-boot-microservice-deployed-in-kubernetes-using-docker-and-nexus-part-2-25dc2a3982cf
gradlew clean bootJar
OBS: You must configure local docker daemon: Insecure regiestries: [nexus ip]:[nexus port]
gradlew clean bootJar jib
docker login [nexus ip]:[nexus port] docker run -d -p 8080:8080 [nexus ip]:[nexus port]/spring-microservice-docker:[version]
kubectl create secret docker-registry trccred --docker-server=[repository ip]:[repository port] --docker-username=[username] --docker-password=[user password] --docker-email=[user email]
kubectl get secret trccred --output=yaml
minikube service spring-microservice
kubectl apply -f ./kubernetes/