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

How kubectl Communicates with Kubernetes

As we saw in the previous chapter, the API server manages communications between the end-user and Kubernetes, and it also acts as an API gateway to the cluster. To achieve this, it implements the RESTful API over the HTTP and HTTPS protocols to perform CRUD operations to populate and modify Kubernetes API objects such as pods, services, and more based upon the instructions sent by a user via kubectl. These instructions can be in various forms. For example, to retrieve information for pods running in the cluster, we would use the kubectl get pods command, while to create a new pod, we would use the kubectl run command.

First, let's take a look at what happens behind the scenes when you run a kubectl command. Take a look at the following illustration, which provides an overview of the process, and then we will take a closer look at the different details of the process:

Figure 3.1: A representative flowchart for the kubectl utility

A kubectl command is translated into an API call, which is then sent to the API server. The API server then authenticates and validates the requests. Once the authentication and validation stages have been successful, the API server retrieves and updates data in etcd and responds with the requested information.

主站蜘蛛池模板: 德安县| 三门峡市| 搜索| 聂荣县| 庄河市| 宁都县| 武宣县| 思茅市| 瑞丽市| 麟游县| 三江| 邳州市| 方城县| 连州市| 海原县| 措勤县| 宿迁市| 伊川县| 竹山县| 高唐县| 抚松县| 鞍山市| 萨迦县| 堆龙德庆县| 赤壁市| 吉首市| 兴仁县| 威海市| 北京市| 绥江县| 和田县| 龙里县| 桂平市| 两当县| 绥德县| 宝坻区| 介休市| 亚东县| 深圳市| 南宁市| 抚顺市|