当前位置:网站首页>SMI 与 Gateway API 的 GAMMA 倡议意味着什么?
SMI 与 Gateway API 的 GAMMA 倡议意味着什么?
2022-07-30 15:33:00 【InfoQ】
GatewayGatewayClassHTTPRoute- 规范的参与:这个倡议由 SIG Network(Gateway API所在的 Kubernetes SIG)与服务网格社区共同发起,服务网格社区有来自 Cilium Service Mesh、Consul、Istio、Kuma、Linkerd、SMI、NGINX Service Mesh 和 Open Service Mesh 的代表。SMI 与其他几个不同,它是服务网格的规范 API,并非是实现,Gateway API 也一样。
- 面向东西向流量:小组的首个工作探索使用 Gateway API 处理东西向流量已经开始。东西向流量,也就是服务网格中服务到服务的流量。
规范
服务网格的规范 SMI

Kubernetes Gateway API

HTTPRouteTCPRouteUDPRouteTLSRoute- 厂商实现了Gateway API 并定义了自己
GatewayClass类型,一系列的实现可供选择。
- 集群管理员安装 Gateway API 的实现,部署跨命名空间的共享网关实例,或者命名空间独享的网关实例。如下图,集群管理员部署了跨
store和site命名空间的网关foo。
- 开发人员创建
HTTPRoute资源将流量路由到指定的后端服务。

现有的流量规范
SMI TrafficSplit
TrafficSplitserviceClusterIPHTTPRouteGroupservicewebsitewebsite-v2spec.serviceservicekind: TrafficSplit
metadata:
name: ab-test
spec:
service: website
matches:
- kind: HTTPRouteGroup
name: ab-test
backends:
- service: website-v1
weight: 0
- service: website-v2
weight: 100
---
kind: HTTPRouteGroup
metadata:
name: ab-test
matches:
- name: firefox-users
headers:
user-agent: ".*Firefox.*"
Istio VirtualService
VirtualServicehostsVirtualServicespec:
hosts:
- reviews.prod.svc.cluster.local # could also be just "reviews"
http:
- match:
- uri:
prefix: "/frontpage"
route:
- destination:
host: frontpage.prod.svc.cluster.local
Kuma TrafficRoute
serviceClusterIPspec:
sources:
- match:
kuma.io/service: backend_default_svc_80
destinations:
- match:
kuma.io/service: redis_default_svc_6379
conf:
http:
- match: …
Cilium CiliumEnvoyConfig
serviceClusterIPspec:
services:
- name: httpbin
namespace: default
listener: envoy-lb-listener
backendServices:
- name: echo
namespace: default
resources: …
Consul ServiceRouter
ServiceRouterwebserviceClusterIPapiVersion: consul.hashicorp.com/v1alpha1
kind: ServiceRouter
metadata:
name: web
spec:
routes:
- match:
http:
pathPrefix: /admin
destination:
service: admin
Linkerd ServiceProfile
ServiceProfileHostroutes/admin/storeapiVersion: linkerd.io/v1alpha2
kind: ServiceProfile
metadata:
name: webapp.my-service-namespace.svc.cluster.local
spec:
routes: …
未来的设计
apiVersion: gateway.networking.k8s.io/v1beta1
kind: HTTPRoute
metadata:
name: my-route
namespace: gateway-api-example-ns2
spec:
parentRefs:
- kind: Gateway
name: foo-gateway
namespace: gateway-api-example-ns1
hostnames:
- foo.example.com
rules:
- backendRefs:
- name: foo-svc
port: 8080
HTTPRoute- 与<u>网关实现</u>(
foo-gateway.gateway-api-example-ns1)的映射(通过parentRefs实现),也就是说将流量匹配规则写入到哪个网关实例。
- 与<u>服务</u>(
foo-svc:8080)的映射(通过hostnames实现)。
HTTPRoutespec.hostnamesspec.rulesmethodpath东西向流量
- 与<u>网格实现</u>的映射,将流量匹配规则写入到某种网格的 sidecar 中。
- 与<u>服务</u>的映射,如何将进入到网格 sidecar 流量与目标服务(网格内的服务,或者网格外的服务)进行匹配。
总结

边栏推荐
- 科研中一些常用软件清单
- SEATA distributed transaction
- 【AGC】Open Test Example
- Classes and Objects (Part 2)
- yarn的安装及使用教程
- QIIME2得到PICRUSt2结果后如何分析
- 解析字符串拼接的两种情况
- TensorFlow custom training function
- Recent learning defragmentation (24)
- 华为ADS获取转化跟踪参数报错:getInstallReferrer IOException: getInstallReferrer not found installreferrer
猜你喜欢

arcpy使用教程

Image information extraction DEM

CAD几个优化设置

【AGC】质量服务1-崩溃服务示例

Flask之路由(app.route)详解

Promise Notes (1)

Shell脚本的概念

围绕用户思维,木鸟与途家如何实现乡村民宿下的用户运营

【HMS core】【FAQ】push kit、AR Engine、广告服务、扫描服务典型问题合集2

【HMS core】【FAQ】push kit, WisePlay DRM, Location Kit, Health Kit, 3D Modeling Kit, SignPal Kit Typical Questions Collection 4
随机推荐
Applicable scenarios of TiDB tools
影像信息提取DEM
配置Path环境变量
Back waves are coming!Ali produced the "second generation" container technical manual and brain map, which is too fragrant
Example of video switching playback (video switching example) code
Packages - Notes
针对 MySQL/InnoDB 刷盘调优
Sleuth+Zipkin (visualization) service link tracking
Golang分布式应用定时任务如何实现
【AGC】开放式测试示例
FME realizes the method of converting CAD with attribute to SHP data
Overview of TiUP commands
Shell脚本的概念
哨兵
应用OPC解决方案实现控制系统数据的安全交换
【HMS core】【FAQ】push kit, WisePlay DRM, Location Kit, Health Kit, 3D Modeling Kit, SignPal Kit Typical Questions Collection 4
yarn安装详细教程说明、升级教程、修改yarn的全局和缓存目录、yarn基本命令
tiup install
70行代码撸一个桌面自动翻译神器
QIIME2得到PICRUSt2结果后如何分析