Kubernetes Nodes and Pods

28/12/2020

With enterprises trying to use container technology for production-level deployment, cluster management and orchestration engines are gaining prominence. Of course, Kubernetes is one of the prominent orchestration engines out there. Pods and Nodes play an important role in the Kubernetes world. So let’s discuss the basics of these components.

Kubernetes Pods

A Pod can be defined as a collection of containers sharing network storage and instructions for operation. It works like a unit. All the containers in the Pod are co-located and co-scheduled. It’s basically an application-specific “logical host”.

Here are the characteristics of a Kubernetes Pod:

  • Shared Storage: Shares the storage as Volumes.
  • Unique IP: Has a unique cluster IP address assigned.
  • Container Information: Includes information about container versions and instructions for container execution and port usage.

There are no hard and fast rules about how to combine containers to create a Pod. But the idea is to tightly couple one or more application containers together. In the physical or virtual machine world, a Pod would look like a single machine with hosting tightly-coupled applications.

When designing a Pod, Kubernetes developers should think about the Pod as an atomic unit. So you can put applications that will benefit from close proximity. For example, you can put a container for Node.js web application and the container that supplies it with data in the same Pod. This way the containers will benefit from the co-location and co-scheduling in a single Pod.

Pods are supposed to be easily replaceable. Each Pod is created by combining one or more application containers. Then it is deployed to a Node. It remains on the Node until its termination. If the Node fails the Kubernetes master components create similar Pods in the healthy Nodes of the cluster.


Kubernetes Nodes

A Node is defined as a worker machine. In the early development of Kubernetes, a Node was called a minion. It can be a physical or virtual machine. The Master manages each Node. Multiple Pods can be deployed to a Node and there are no restrictions on what kind of Pods can be run on the Nodes. The Kubernetes Master handles the scheduling of the Pods across the various Nodes and keeps track of the available resources on them.

Here are the mandatory components of a Kubernetes Node:

  • Kubelet: Each Node has a Kubelet. It is the intermediary between Kubernetes Master and the Kubernetes Nodes. The Kubelet process is responsible for running the Pods and the containers inside those Pods.
  • Container Runtime: It is the container runtime manager. It pulls the container image from a registry, unpacks it and runs the container application.

Unlike Pods, Nodes are not created by Kubernetes directly. Kuberenetes takes the physical or virtual machine on your pool of resources in your cloud or data center and creates an abstraction. So when Kuberenetes is creating a Node, it is creating an object that represents the Node.


Conclusion

Pods and Nodes are fundamental concepts of Kubernetes. Containers are combined to create Pod workloads and then Pods are distributed to Nodes or work machines. Through the combination of Pods and Nodes, Kubernetes is able to build powerful clusters to support large-scale applications.

Further Study:

References:

ONET IDC thành lập vào năm 2012, là công ty chuyên nghiệp tại Việt Nam trong lĩnh vực cung cấp dịch vụ Hosting, VPS, máy chủ vật lý, dịch vụ Firewall Anti DDoS, SSL… Với 10 năm xây dựng và phát triển, ứng dụng nhiều công nghệ hiện đại, ONET IDC đã giúp hàng ngàn khách hàng tin tưởng lựa chọn, mang lại sự ổn định tuyệt đối cho website của khách hàng để thúc đẩy việc kinh doanh đạt được hiệu quả và thành công.
Bài viết liên quan

Kubernetes Nodes and Pods

With enterprises trying to use container technology for production-level deployment, cluster management and orchestration...
28/12/2020

Deploying Apps on Kubernetes Clusters

In a previous article we deployed a Kubernetes Cluster with one master and one worker node. Kubernetes clusters are mainly...
28/12/2020

What is Kubernetes?

What is Kubernetes? And what is its architecture? Containerization has cut the cord between software developers and the...
28/12/2020
Bài Viết

Bài Viết Mới Cập Nhật

SỰ KHÁC BIỆT GIỮA RESIDENTIAL PROXY VÀ PROXY DATACENTER
17/02/2024

Mua Proxy v6 US Private chạy PRE, Face, Insta, Gmail
07/01/2024

Mua shadowsocks và hướng dẫn sữ dụng trên window
05/01/2024

Tại sao Proxy Socks lại được ưa chuộng hơn Proxy HTTP?
04/01/2024

Mua thuê proxy v4 nuôi zalo chất lượng cao, kinh nghiệm tránh quét tài khoản zalo
02/01/2024