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

Book Review: Getting Started with Kubernetes – Second Edition

Kubernetes is both a powerful tool and a work in progress. Naturally, there is a lot of interest in the technology. At...
28/12/2020

Kubernetes Metrics Server

With a system as large and complicated as Kubernetes, monitoring can often become troublesome.Monitoring is always a tricky...
29/12/2020

Kubernetes Ingress

Kubernetes has a lot of moving parts. This is to be expected from any model meant for distributed computing. To explore...
29/12/2020
Bài Viết

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

Tìm Hiểu Về Thuê Proxy US – Lợi Ích và Cách Sử Dụng Hiệu Quả
11/12/2024

Mua Proxy V6 Nuôi Facebook Spam Hiệu Quả Tại Onetcomvn
03/06/2024

Hướng dẫn cách sử dụng ProxyDroid để duyệt web ẩn danh
03/06/2024

Mua proxy Onet uy tín tại Onet.com.vn
03/06/2024

Thuê mua IPv4 giá rẻ, tốc độ nhanh, uy tín #1
28/05/2024