需求场景
- 实现在大规模虚拟服务下可管理、可观测的系统
- 在代码层面,剪掉技术栈深度,回归单体架构中基于Spring Boot的开发模式,而不是Spring Cloud 或者 Spring Cloud Kubernetes 的技术架构
运行程序
- 在Kubernetes 无 Sidecar状态下运行
#Kuberneters without Envoy 资源描述文件
kubectl apply -f https://raw.githubusercontent.com/fenixsoft/servicemesh_arch_istio/master/bookstore-dev.yml
kuberctl get svc istio-ingressgateway -nistio-system -o yaml
- 在Istio服务网格环境上运行。
kubectl apply -f https://raw.githubusercontent.com/fenixsoft/servicemesh_arch_istio/master/bookstore.yml
当所有Pod都处于正常工作状态后,访问http://IP(用户:icyfenix,密码:123456)
技术组件
- 配置中心:通过Kubernetes 来管理 ConfigMap
- 服务发现:通过Kubernetes来管理Service
- 负载均衡:KubeDNS
- 服务网关:Istio Ingress Gateway
- 服务容错:Envoy
- 认证授权:Istio安全机制来实现
网友评论