Quickly understand what it is: Kubernetes

Every time we talk about containers, in addition to Docker, we talk about Kubernetes. So what is Kubernetes? Let’s learn how to quickly get started with Kubernetes today! Hope this article is helpful to you.

Kubernetes, a tool for managing and automating containerized workloads in the cloud.

Imagine you have an orchestra and treat each musician as a docker container. In order to create beautiful music, we need a conductor to manage the musicians and set the pace. Now think of the conductor as Kubernetes and the orchestra as an application like Robinhood. When the market is closed, apps like Robinhood are of little use. But when they open, it will need to complete millions of transactions in overpriced stocks like Tesla and Shopify.

Kubernetes is a tool for orchestrating infrastructure to handle changing workloads. It can scale containers across multiple machines, and if one machine fails, it knows how to replace it with a new machine.

Systems deployed on Kubernetes are called clusters. The operating brain is called the control plane. It exposes an API server that can handle internal and external requests to manage the cluster.

It also contains its own key-value database, called etcd, which stores important information about the running cluster.

It manages one or more worker machines called nodes. When you hear node, think of a machine.

Each node runs something called a kubelet, which is a tiny application that runs on the machine and is used to communicate with the main control plane mothership.

There are multiple Pods inside each node, which is the smallest deployable unit in Kubernetes. When you hear pod, imagine a pod of whales or containers running together.

As workloads increase, Kubernetes can automatically scale horizontally by adding more nodes to the cluster. Along the way, it takes care of complex things like networking, secret management, persistent storage, and more.

It is designed for high availability, and one way to achieve this is to maintain replica sets. It's just a set of running Pods or containers that are ready to run. As a developer, you define objects in YAML that describe the desired state of your cluster.

For example, we might have an nginx deployment with a replica set of three pods. In the spec field we can define exactly how it behaves, such as its containers, volumes, ports, etc. You can then take this configuration and use it to automatically configure and scale your containers and ensure they are always up and healthy.

Video explanation: https://www.bilibili.com/video/BV12N411j7CE/ , welcome one-click three-way support ~

If you want to broaden your horizons and understand and discover more concepts and knowledge in the computer field, welcome to follow my continuously updated developer science column to help you explore more popular knowledge in the computer field!

Welcome to follow my public account: Programmer DD. If we had known about cutting-edge technology, there would be hope for overtaking on curves! To accumulate overtaking capital, start by paying attention to DD!

Guess you like

Origin blog.csdn.net/dyc87112/article/details/134870788