Project to play with: https://piotrminkowski.wordpress.com/2017/03/31/microservices-with-kubernetes-and-docker/
mvn clean install package (twice)
docker build -t piomin/account-service .
docker build -t piomin/customer-service .
kubectl create -f deployment-account.json
kubectl create -f deployment-customer.json
... next, the services
curl -d '{"id":"id1", "customerId":"customer1", "number":"1"}' -H "Content-Type: application/json" -X POST http://localhost:2222/accounts
use admin
db.createUser({user:"micro",pwd:"micro",roles:[{role:"root",db:"admin"}]})
db.auth("micro","micro")
show databases
use test
show collections