Giter Site home page Giter Site logo

nhatthaiquang-agilityio / spring-feign-kubernetes Goto Github PK

View Code? Open in Web Editor NEW
22.0 3.0 13.0 33.51 MB

Spring Cloud: FeignClient and Fabric8io Kubernetes lib

Java 91.47% Dockerfile 8.53%
minikube kubernetes spring-cloud-netflix spring-cloud-ribbon feignclient fabric8

spring-feign-kubernetes's Introduction

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-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

client-service: Using Feign, connect to hello-service

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

Reference

Spring Cloud integration with Kubernetes

spring-feign-kubernetes's People

Contributors

nhatthaiquang-agilityio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

spring-feign-kubernetes's Issues

deploy on Openshift

Hi @Nhatthai
Thank you for sharing your code, it's very helpful.
I would know please, if you tried to deploy it on mini/openshift and if work correctly?
Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.