Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nhatthaiquang-agilityio/spring-feign-kubernetes
Spring Cloud: FeignClient and Fabric8io Kubernetes lib
https://github.com/nhatthaiquang-agilityio/spring-feign-kubernetes
fabric8 feignclient kubernetes minikube spring-cloud-netflix spring-cloud-ribbon
Last synced: 11 days ago
JSON representation
Spring Cloud: FeignClient and Fabric8io Kubernetes lib
- Host: GitHub
- URL: https://github.com/nhatthaiquang-agilityio/spring-feign-kubernetes
- Owner: nhatthaiquang-agilityio
- Created: 2018-02-09T04:03:56.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-01-08T08:49:28.000Z (almost 4 years ago)
- Last Synced: 2024-04-16T07:09:42.575Z (9 months ago)
- Topics: fabric8, feignclient, kubernetes, minikube, spring-cloud-netflix, spring-cloud-ribbon
- Language: Java
- Size: 32.7 MB
- Stars: 22
- Watchers: 3
- Forks: 13
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spring Cloud Kubernetes: FeignClient and Ribbon discovery in Kubernetes
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`### Requirements
+ Run on Kubernetes#### Minikube IP: 192.168.99.100
#### hello-service: it is a service app. It has api
http://192.168.99.100:31090/get-greetingsBuild 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
```#### client-service: Using Feign, connect to hello-service
http://192.168.99.100:31899/client-get-all-greetingsIt 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
```### Reference
[Spring Cloud integration with Kubernetes](https://github.com/spring-cloud-incubator/spring-cloud-kubernetes)