Providing client-side load balancing for a microservice application using Netflix Ribbon and Netflix Feign as well.
Fabric Kubernetes lib will find services(Not config list of servers)
Using Ribbon discovery in Kubernetes spring-cloud-starter-kubernetes-netflix
- Run on Kubernetes
http://192.168.99.100:31090/get-greetings
Build hello-service
cd hello-service
mvn clean package
Docker build
cd hello-service
docker build -t nhatthai/hello-service .
Run service in Kubernetes(Using Minikube)
cd hello-service
kubectl create -f manifests/hello-service-configmap.yml
kubectl create -f manifests/hello-service.yml
http://192.168.99.100:31899/client-get-all-greetings
It will request to http://192.168.99.100:31090/get-greetings of hello-service
Build client-service
cd client-service
mvn clean package
Docker build
cd client-service
docker build -t nhatthai/client-service .
Run service in Kubernetes(Using Minikube)
cd client-service
kubectl create -f manifests/client-service-configmap.yml
kubectl create -f manifests/client-service.yml