Difficulty: Beginner
Estimated Time: 10 minutes

Don’t stop now! The next scenario will only take about 10 minutes to complete.

minikube with local images

Step 1

  • alias build-machine='docker run --rm -it -v $PWD:/my -w /my maven:3-jdk-9-slim'
  • build-machine mvn -q archetype:generate (filter: dropwizard-app (1.1), item #1, group: grp, artifactId:myapp)
  • cd myapp
  • build-machine mvn -q package
  • minikube start
  • docker pull mysql
  • docker-compose build
  • kubectl apply -f k8s.yml
  • open minikube dashboard
  • watch kubectl get pods
  • minikube service list
  • open service page
  • kubectl apply -f k8s.yml
  • kubectl get pods
  • kubectl logs -f $PODNAME