Files
kuboard-press/learning/k8s-practice/spring-cloud/README.md
huanqing.shao ba09871630 optimization
2019-10-23 23:22:38 +08:00

51 lines
2.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
vssueId: 68
layout: LearningLayout
metaTitle: Spring Cloud on KubernetesK8S教程/K8S培训
description: Kubernetes教程_微服务参考架构_包含微服务运行时_构建及测试_部署及运维_监控及评估__设计和研发Kuboard的初心便源于此SpringCloud微服务参考架构。
meta:
- name: keywords
content: Kubernetes教程,K8S教程,Kubernetes微服务,K8S培训
---
# Spring Cloud on Kubernetes
<AdSenseTitle/>
下图是作者在落地 Spring Cloud 微架构的过程中,设计了如下图所示的微服务参考架构,设计和研发 Kuboard 的初心便源于此图。历时两年时间Kuboard终于发布也标志着该参考架构的成熟可用。该参考架构主要包括四个重要组成部分
* 微服务运行时
* 前后端分离
* Spring Cloud
* 构建及测试
* 源代码/构建管理
* 包管理
* 部署及运维
* Kubernetes + Kuboard
* 监控及评估
* 熔断及限流
* 链路追踪
* 性能监控
* 日志收集
* APM
在整体架构中,微服务运行时分为如下几层:
* 展现层
* 网关层
* 服务层
* 中间件层
另有监控层,用于微服务运行时的监控和评估。
展现层、网关层、服务层、中间件层以及监控层,都运行于 Kubernetes 之上,由 Kuboard 管理。
![Kubernetes教程微服务参考架构](./README.assets/image-20190731230110206.png)
Spring Cloud on Kubernetes 并不对 Spring Cloud 架构、组件等做过多解释,而是将重点放在如何将 Spring Cloud 的各类型组件顺利部署到 Kubernetes 环境中。
为了更好地阐述此主题,作者准备了一个最简单的微服务 example 作为例子,该 example 只实现了对一张简单数据库表执行 CRUD 操作的功能,该 example 的部署架构如下图所示,源代码请参考 [kuboard-example](https://github.com/eip-work/kuboard-example),您也可以直接通过 Kuboard [导入 example 微服务](/guide/example/import.html)
![Kubernetes教程SpringCloud Example](./README.assets/image-20190801063223432.png)