Discovery service is a part of microservices architecture, to run it this is system required:
- VirtualBox
- Docker
- minikube (kubernate platform)
start the kubernate platform with this command:
minikube start -p springboot2-discovery-service-consul
The output will show like this:
โ ~ minikube start -p springboot2-discovery-service-consul
๐ minikube v1.0.0 on darwin (amd64)
๐คน Downloading Kubernetes v1.14.0 images in the background ...
๐ฅ Creating virtualbox VM (CPUs=2, Memory=2048MB, Disk=20000MB) ...
๐ถ "springboot2-discovery-service-consul" IP address is 192.168.99.111
๐ณ Configuring Docker as the container runtime ...
๐ณ Version of container runtime is 18.06.2-ce
โ Waiting for image downloads to complete ...
โจ Preparing Kubernetes environment ...
๐ Pulling images required by Kubernetes v1.14.0 ...
๐ Launching Kubernetes v1.14.0 using kubeadm ...
โ Waiting for pods: apiserver proxy etcd scheduler controller dns
๐ Configuring cluster permissions ...
๐ค Verifying component health .....
๐ kubectl is now configured to use "springboot2-discovery-service-consul"
๐ Done! Thank you for using minikube!
checking status:
minikube -p springboot2-discovery-service-consul status
dashboard minikube:
minikube -p springboot2-discovery-service-consul dashboard