官术网_书友最值得收藏!

Master

Essentially, master is the brain of our cluster. Here, we have the core API server, which maintains RESTful web services for querying and defining our desired cluster and workload state. It's important to note that the control pane only accesses the master to initiate changes and not the nodes directly.

Additionally, the master includes the scheduler, which works with the API server to schedule workloads in the form of pods on the actual minion nodes. These pods include the various containers that make up our application stacks. By default, the basic Kubernetes scheduler spreads pods across the cluster and uses different nodes for matching pod replicas. Kubernetes also allows specifying necessary resources for each container, so scheduling can be altered by these additional factors.

The replication controller/replica set works with the API server to ensure that the correct number of pod replicas are running at any given time. This is exemplary of the desired state concept. If our replication controller/replica set is defining three replicas and our actual state is two copies of the pod running, then the scheduler will be invoked to add a third pod somewhere on our cluster. The same is true if there are too many pods running in the cluster at any given time. In this way, K8s is always pushing toward that desired state.

Finally, we have etcd running as a distributed configuration store. The Kubernetes state is stored here and etcd allows values to be watched for changes. Think of this as the brain's shared memory.

主站蜘蛛池模板: 上犹县| 项城市| 台南市| 深州市| 清远市| 宁阳县| 柯坪县| 连城县| 阜宁县| 石渠县| 西和县| 巴马| 保德县| 武汉市| 贵南县| 乡城县| 信丰县| 伊金霍洛旗| 中阳县| 鹤壁市| 洞口县| 张家界市| 靖边县| 福鼎市| 阳东县| 密山市| 客服| 宝鸡市| 永寿县| 宜良县| 米脂县| 铜鼓县| 原平市| 黄龙县| 清苑县| 兰州市| 民乐县| 博白县| 雷山县| 吴堡县| 浑源县|