Get the App
SLTechnology News&Howtos  ›  Servers  › 

[reading Notes] 09 talk about the essence of Kubernetes from container to container cloud

Shulou Source: shulou.com Published: 2022-06-02 17:15:08 10月04日 Update

An in-depth Analysis of Kubernetes-09 from Container to Container Cloud to talk about the essence of Kubernetes

Kubernetes mainly solves the problems: service orchestration, node management, task scheduling.

Kubernetes node roles:

(1) Master: apiserver (providing API services), kube-scheduler (responsible for scheduling), kube-controller-manager (responsible for container orchestration)

(2) worknode: the core component is kubelet, which is responsible for communicating with apiserver and container runtime (such as docker)

Kubernetes recommends declarative API to choreograph services through API objects.

(1) multiple pod acts as proxies through service. Information such as IP and port of proxy pod is automatically updated to provide a unified entry (IP will not change throughout the lifecycle)

(2) the smallest management granularity is that pod,pod is a collection of container, and a pod can contain multiple container.

(3) configuration is managed by configmap, and directories or files are mounted to the container.

(4) sensitive files, such as certificates, password files, etc., are mounted through secret

(5) if you need to fix the hostname and require the start and stop order of the process, you can deploy it through statefulset.

(6) agent processes, such as log collection, monitoring processes, etc., each host needs a service that can be deployed through daemonset

(7) scheduled execution tasks are executed through cronjob

(8) one-time execution of tasks is completed through job

(9) automatic scaling is realized through HPA

Tags: Containers processes services tasks files management can be passed through multiple nodes agents scheduling essence minimum one-time host information entry cycle host host Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Xiaomi Shulou Information Redmi OPPO Reno