All Projects → piomin → Sample Spring Microservices Kubernetes

piomin / Sample Spring Microservices Kubernetes

sample spring boot application that uses some features provided by spring cloud kubernetes, spring cloud ribbon and zuul proxy deployed on Kubernetes

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Sample Spring Microservices Kubernetes

Spring Cloud Learning
☁️适合刚接触微服务架构的初学者了解和学习微服务,主要集成了注册中心、服务网关、配置中心、熔断机制、应用监控。
Stars: ✭ 37 (-69.92%)
Mutual labels:  spring-boot, spring-cloud, ribbon, zuul
Simplemall
基于SpringCloud的微服务架构实战案例项目,以一个简单的购物流程为示例,融合spring cloud 相关组件,如spring-cloud-netflix、swagger等
Stars: ✭ 687 (+458.54%)
Mutual labels:  swagger2, spring-boot, spring-cloud, zuul
Sample Spring Microservices New
Demo for Spring Boot 2 and Spring Cloud microservices with distributed configuration (Spring Cloud Config), service discovery (Eureka), API gateway (Spring Cloud Gateway, Zuul), Swagger2 API documentation, logs correlation using Spring Cloud Sleuth and many more
Stars: ✭ 559 (+354.47%)
Mutual labels:  swagger2, spring-cloud, ribbon, zuul
Spring Cloud
SpringCloud微服务架构,提供快速上手脚手架,快速构建高可用注册中心,高可用配置中心,加入Hystrix断路器,gateway服务官网,权限认证、服务降级、限流,加入应用监控
Stars: ✭ 130 (+5.69%)
Mutual labels:  spring-boot, spring-cloud, ribbon, zuul
Mini Platform
Mini-Platform致力于更简洁易用的轻量级微服务治理平台。
Stars: ✭ 45 (-63.41%)
Mutual labels:  spring-boot, spring-cloud, ribbon, zuul
Springcloudlearning
《史上最简单的Spring Cloud教程源码》
Stars: ✭ 16,218 (+13085.37%)
Mutual labels:  spring-boot, spring-cloud, ribbon, zuul
Sample Spring Microservices
Many samples in different branches that shows how to create microservices with Spring Boot, Spring Cloud, Zipkin, Zuul, Eureka, Hystrix, Kubernetes, Elastic Stack and many more tools
Stars: ✭ 368 (+199.19%)
Mutual labels:  spring-boot, spring-cloud, ribbon, zuul
Springcloud Learning
Spring Cloud基础教程,持续连载更新中
Stars: ✭ 6,839 (+5460.16%)
Mutual labels:  spring-boot, spring-cloud, ribbon, zuul
Sample Spring Microservices Advanced
More advanced samples of spring boot and spring cloud microservices showing usage of such tools like api Swagger2 on Zuul, integraction with MongoDB, configuration server, testing with Spring Cloud Contract or Hoverfly
Stars: ✭ 112 (-8.94%)
Mutual labels:  swagger2, spring-boot, spring-cloud, zuul
Spring Cloud Security
Security concerns for distributed applications implemented in Spring
Stars: ✭ 488 (+296.75%)
Mutual labels:  spring-boot, spring-cloud, zuul
Spring Cloud Examples
Spring Cloud 学习案例,服务发现、服务治理、链路追踪、服务监控等
Stars: ✭ 5,829 (+4639.02%)
Mutual labels:  spring-boot, spring-cloud, zuul
Sample Spring Oauth2 Microservices
some examples that show basic and more advanced implementations of oauth2 authorization mechanism in spring-cloud microservices environment
Stars: ✭ 109 (-11.38%)
Mutual labels:  spring-boot, spring-cloud, zuul
Spring Cloud Netflix
Integration with Netflix OSS components
Stars: ✭ 4,498 (+3556.91%)
Mutual labels:  spring-boot, spring-cloud, ribbon
Spring Cloud Microservices Development
Spring Cloud Microservices Development.《Spring Cloud 微服务架构开发实战》
Stars: ✭ 106 (-13.82%)
Mutual labels:  spring-boot, spring-cloud, zuul
Shop
spring cloud最佳实践项目实例,使用了spring cloud全家桶,TCC事务管理,EDA事务最终一致性等技术的下单示例
Stars: ✭ 418 (+239.84%)
Mutual labels:  spring-boot, spring-cloud, zuul
Java Spring Cloud
Distributed tracing for Spring Boot, Cloud and other Spring projects
Stars: ✭ 326 (+165.04%)
Mutual labels:  spring-boot, spring-cloud, zuul
Spring Petclinic Microservices
Distributed version of Spring Petclinic built with Spring Cloud
Stars: ✭ 814 (+561.79%)
Mutual labels:  spring-cloud, ribbon, zuul
Spring Cloud Examples
Examples of microservice instrastructures
Stars: ✭ 11 (-91.06%)
Mutual labels:  spring-boot, spring-cloud, zuul
microservices-v8
Learn Microservices with Spring Boot - v8
Stars: ✭ 32 (-73.98%)
Mutual labels:  spring-cloud, zuul, ribbon
Bookstoreapp Distributed Application
Ecommerce project is being developed using Spring Boot Microservices and Spring Cloud (Backend) and React (Frontend). Splitting the Ecommerce functionality into various individual microservices so that they can be distributed, scale really well and make use of resources efficiently.
Stars: ✭ 63 (-48.78%)
Mutual labels:  spring-boot, spring-cloud, zuul

Microservices with Spring Boot and Spring Cloud on Kubernetes Demo Project Twitter

In this project I'm demonstrating you the most interesting features of Spring Cloud Project for building microservice-based architecture that is deployed on Kubernetes. All the samples may be easily deployed on local Kubernetes single-node cluster - Minikube.

Getting Started

Currently you may find here some examples of microservices implementation using different projects from Spring Cloud. All the examples are divided into the branches and described in a separated articles on my blog. Here's a full list of available examples:

  1. Using Spring Boot and Spring Cloud for building microservices that may be easily deployed on Kubernetes. The example is available in the branch master. A detailed guide may be find in the following article: Detailed description can be found here: Quick Guide to Microservices with Kubernetes, Spring Boot 2.0 and Docker
  2. An introduction to Spring Cloud Kubernetes project, that shows its the most interesting features like discovery across many namespaces or Spring Boot property sources based on ConfigMap and Secret. The example is available in the branch hybrid. A detailed guide may be find in the following article: Detailed description can be found here: Microservices with Spring Cloud Kubernetes
  3. Using Spring Boot Admin to monitor Spring Boot applications running on Kubernetes. The example is available in the branch master. A detailed guide may be find in the following article: Spring Boot Admin on Kubernetes

Usage

  1. Download and run Minikube using command: minikube start --vm-driver=virtualbox --memory='4000mb'
  2. Build Maven project with using command: mvn clean install
  3. Build Docker images for each module using command, for example: docker build -t piomin/employee:1.1 .
  4. Go to /kubernetes directory in repository
  5. Apply all templates to Minikube using command: kubectl apply -f <filename>.yaml
  6. Check status with kubectl get pods

Architecture

Our sample microservices-based system consists of the following modules:

  • gateway-service - a module that Spring Cloud Netflix Zuul for running Spring Boot application that acts as a proxy/gateway in our architecture.
  • employee-service - a module containing the first of our sample microservices that allows to perform CRUD operation on Mongo repository of employees
  • department-service - a module containing the second of our sample microservices that allows to perform CRUD operation on Mongo repository of departments. It communicates with employee-service.
  • organization-service - a module containing the third of our sample microservices that allows to perform CRUD operation on Mongo repository of organizations. It communicates with both employee-service and department-service.
  • admin-service - a module containing embedded Spring Boot Admin Server used for monitoring Spring Boot microservices running on Kubernetes The following picture illustrates the architecture described above including Kubernetes objects.

You can distribute applications across multiple namespaces and use Spring Cloud Kubernetes DiscoveryClient and Ribbon for inter-service communication.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].