11.2.1 了解涉及哪些组件
隐藏了 etcd:

11.2.2 事件链

从图中看出控制器管理器中的各种控制器, 都在 API 服务器中有个映射 (虚线), 目前不清楚实际部署时控制器是怎么部署的.
Deployment 控制器生成 ReplicaSet
Deployment 不直接创建 pod.
使用例子:
apiVersion: apps/v1kind: Deploymentmetadata:# Unique key of the Deployment instancename: deployment-examplespec:# 3 Pods should exist at all times.replicas: 3selector:matchLabels:app: nginxtemplate:metadata:labels:# Apply this label to pods and default# the Deployment label selector to this valueapp: nginxspec:containers:- name: nginx# Run this imageimage: nginx:1.14
ReplicaSet 控制器创建 pod 资源
把各种 yaml 想象成各种控制器的配置, 各种控制器对其 yaml (资源) 进行管理.
调度器分配节点给新创建的 pod
关联 pod 到具体节点, nodeName 属性.
Kubelet 运行 pod 容器
Kubelet 通过 API 服务器监听 pod 变更.
11.2.3 观察集群事件
事件资源.
kubectl get events

- SOURCE: 执行动作的控制器
- NAME, KIND: 控制器作用的资源
- REASON, MESSAGE: 详细信息
