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即学即用(第二版)
部署
Kubernetes
集群
47
请注意,
Kubernetes
会跟踪机器上运行的每个
Pod
的资源请求与约束。我们
将在第
5
章中详细介绍请求与约束,简而言之,
Pod
的请求是节点必须确保
的资源量,而
Pod
的约束是
Pod
可以消耗的最大资源量。
Pod
的约束值可以
高于请求值,节点会尽量提供多出的这部分资源,但不能完全保证。
3.6
集群组件
Kubernetes
很有趣的一个方面是,组成
Kubernetes
集群的许多组件实际上都
是通过
Kubernetes
本身部署的。下面我们就来看看其中一些组件。这些组
件使用了许多概念,我们将在后面的章节中介绍。所有这些组件都在
kube-
system
命名空间
1
中运行。
3.6.1 Kubernetes
代理
Kubernetes
代理负责将网络流量路由到
Kubernetes
集群的负载均衡服务上。
为此,集群中的每个节点都必须运行代理。
Kubernetes
有一个名为守护进程
集的
API
对象(我们将在后面章节详细介绍),许多集群都使用这个对象来
运行代理。如果你的集群使用守护进程集运行
Kubernetes
代理,则可以通过
运行以下命令查看这些代理:
$
kubectl get daemonSets --namespace=kube-system kube-proxy
NAME DESIRED CURRENT READY NODE-SELECTOR AGE
kube-proxy 4 4 4 <none>
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