Skip to Content
Kubernetes即学即用(第二版)
book

Kubernetes即学即用(第二版)

by Brendan Burns, Joe Beda, Kelsey Hightower
June 2021
Intermediate to advanced
300 pages
5h 4m
Chinese
China Electric Power Press Ltd.
Content preview from Kubernetes即学即用(第二版)
108
8
用户创建和修改
Ingress
对象的方式与其他对象一样。但是,默认情况下,没
有任何代码会实际操作
Ingress
对象。用户(或他们使用的发行版)必须自行
安装和管理外部控制器。因此,这种控制器是可插拔的。
Ingress
采用这种形式的原因有很多。首先,我们没有普遍适用的
HTTP
负载
均衡器。除了许多软件负载均衡器(开源的和专有的)之外,云提供商(例如,
AWS
上的
ELB
)和基于硬件的负载均衡器也提供了负载均衡的功能。其次,
Kubernetes
Ingress
对象出现的时间早于很多常见的可扩展功能(请参见第
16
章)。不过,随着
Ingress
的发展,以后它很可能也会采用这些机制。
8.2
安装
Contour
尽管我们有很多
Ingress
控制器可供选择,但在下面的示例中,我们将使用一
种名叫
Contour
Ingress
控制器。该控制器的主要用途是配置另一个开源的
负载均衡器
Envoy
(也是
CNCF
的项目)。
Envoy
可以通过
API
动态配置。
Contour Ingress
控制器负责将
Ingress
对象转换为
Envoy
可以理解的内容。
Contour
项目的官方地址为:
https://github.com/projectcontour/contour
Heptio
与实际客户合作创建了
Contour
,并将其用到了生产环境。
你可以通过一行简单的代码安装
Contour
$
kubectl apply -f https://j.hept.io/contour-deployment-rbac
请注意,该命令需要由拥有 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

PyTorch深度学习

PyTorch深度学习

Posts & Telecom Press, Vishnu Subramanian
Python数据分析

Python数据分析

Posts & Telecom Press, Ivan Idris
Python贝叶斯分析(第2版)

Python贝叶斯分析(第2版)

Posts & Telecom Press, Osvaldo Martin
Python高级编程(第2版)

Python高级编程(第2版)

Posts & Telecom Press, Michał Jaworski, Tarek Ziadé

Publisher Resources

ISBN: 9787519856762