Building a microservice system with Docker 101
After we set up the microservices with Docker Swarm, we can access http://localhost:8000.
docker swarm init
docker stack deploy swarm101 -c swarm/docker-compose.yml
or
fab localhost setup_swarm
docker swarm leave --force
or
fab localhost leave_swarm
Let's run Minikube before we go on.
minikube start
After we set up the microservices with Docker Swarm, we can access http://192.168.99.100:32500/, where 192.168.99.100 is the IP of the Minikube machine.
kubectl create -f k8s/bangkok-deployment.yml
kubectl create -f k8s/tokyo-deployment.yml
kubectl create -f k8s/nyc-deployment.yml
kubectl create -f k8s/munich-deployment.yml
kubectl create -f k8s/front-gateway-deployment.yml
or
fab localhost setup_k8s
kubectl delete -f k8s/bangkok-deployment.yml
kubectl delete -f k8s/tokyo-deployment.yml
kubectl delete -f k8s/nyc-deployment.yml
kubectl delete -f k8s/munich-deployment.yml
kubectl delete -f k8s/front-gateway-deployment.yml
or
fab localhost delete_k8s