Knative路由与流量目标深入解析
1. 路由基础与创建
在Knative中,路由(Route)是一个关键概念,它负责处理流量的分配和管理。创建路由的简便方式是通过服务(Service)来完成。当使用 kn service create 命令时,会创建一个服务,而该服务又会触发路由的创建。同样,使用 kn service update 命令更新服务时,路由也会相应更新以指向新的版本(Revision);使用 kn service delete 则会删除路由。
例如,使用 kn route describe hello-example 命令可以查看路由的详细信息:
$ kn route describe hello-example
Name:
hello-example
Namespace:
default
Age:
2d
URL:
http://hello-example.default.example.com
Service:
hello-example
Traffic Targets:
100%
@latest (hello-example-zcttz-8)
Conditions:
OK TYPE
AGE REASON
++ Ready
3h
++ AllTrafficAssigned
4h
++ IngressReady
3h
2. 路由剖析
路由的核心工作集中在 spe
超级会员免费看
订阅专栏 解锁全文
32

被折叠的 条评论
为什么被折叠?



