0Pricing
Docker & Kubernetes for Developers · บทเรียน

สถาปัตยกรรมและองค์ประกอบของ Kubernetes

สำรวจองค์ประกอบสำคัญของคลัสเตอร์ Kubernetes รวมถึงโหนดหลัก โหนดผู้ปฏิบัติงาน พ็อด และตัวควบคุม

สถาปัตยกรรมและองค์ประกอบของ Kubernetes เป็นบทเรียน Docker & Kubernetes for Developers ฟรีบน CoddyKit นี่คือบทเรียนที่ 2 จากทั้งหมด 4 บทเรียน คุณสามารถอ่านบทเรียนทั้งหมดด้านล่างฟรี — จากนั้นลองปฏิบัติด้วยตัวคุณเองในเบราว์เซอร์พร้อมตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7 บทเรียนนี้เป็นส่วนหนึ่งของเส้นทางการเรียน Docker & Kubernetes for Developers และความก้าวหน้าของคุณจะซิงค์ข้ามเว็บและแอป CoddyKit คอร์ส Docker & Kubernetes for Developers มีบทเรียนทั้งหมด 4 บทเรียน

บางส่วนของบทเรียนนี้ยังไม่ได้รับการแปล และแสดงเป็นภาษาอังกฤษ

Understanding Kubernetes Structure

Welcome! In this lesson, we'll dive into the core architecture of a Kubernetes cluster. Understanding how Kubernetes is put together is key to effectively deploying and managing your applications.

It helps you grasp how K8s manages applications and troubleshoot issues when they arise.

Cluster Overview: Master & Worker

At a high level, a Kubernetes cluster consists of two main types of nodes:

  • Master Node(s): These are the 'brains' that manage the entire cluster.
  • Worker Node(s): These are where your actual applications (containers) run.

Together, they form a robust system for orchestrating your workloads.

Master Node: The Control Plane

The Master node hosts what's known as the Control Plane. These components make global decisions about the cluster, like scheduling, and detect and respond to cluster events.

Key components of the Control Plane include:

  • Kube-APIServer
  • etcd
  • Kube-Scheduler
  • Kube-Controller-Manager

Kube-APIServer: The Central Hub

The Kube-APIServer is the front-end for the Kubernetes control plane. It's the central hub for all communication.

  • It exposes the Kubernetes API.
  • All communication between internal cluster components and external users (like you!) goes through it.
  • Think of it as the main gateway to interact with your cluster.

etcd: Cluster's Memory

etcd is a consistent and highly available key-value store. It's the persistent storage for all cluster data.

  • It stores all cluster configurations, desired state, and metadata.
  • It's critical for the cluster's operation.
  • You can think of it as the cluster's long-term memory.

Kube-Scheduler: Assigning Work

The Kube-Scheduler watches for newly created Pods that don't have an assigned node yet.

  • It selects the best available node for each Pod to run on.
  • Factors like resource requirements (CPU/memory), hardware constraints, and policy constraints are all considered during this decision.

Kube-Controller-Manager: State Keeper

The Kube-Controller-Manager runs various controller processes that monitor the cluster's state.

  • Controllers continuously monitor the cluster's actual state.
  • They work to move the current state towards the desired state you've defined.
  • Examples include the Node Controller, Replication Controller, and Endpoint Controller.

Worker Node: Running Applications

Worker nodes are where your applications run. Each worker node contains the following key components:

  • Kubelet: An agent that ensures containers are running in a Pod.
  • Kube-proxy: Maintains network rules on nodes, enabling network communication to your Pods.
  • Container Runtime: Software like Docker or containerd that executes containers.

Pods: Smallest Deployable Units

A Pod is the smallest deployable unit in Kubernetes. It's the fundamental building block for your applications.

  • A Pod represents a single instance of a running process in your cluster.
  • Pods can contain one or more containers (e.g., your app and a helper sidecar container).
  • All containers within a Pod share the same network namespace and storage.

Architecture Check

Let's test your understanding of Kubernetes cluster components.

Recap: K8s Architecture Basics

We've explored the fundamental architecture of a Kubernetes cluster:

  • The Master Node hosts the Control Plane (API Server, etcd, Scheduler, Controller Manager) to manage the cluster.
  • Worker Nodes run your applications, managed by Kubelet and Kube-proxy.
  • Pods are the smallest deployable units, encapsulating one or more containers.

Understanding these components is key to deploying and managing applications effectively. Next, we'll learn how to deploy your first Pod!

คำถามที่พบบ่อย

บทเรียน “สถาปัตยกรรมและองค์ประกอบของ Kubernetes” ฟรีหรือไม่

ใช่ — ข้อความเต็มของ “สถาปัตยกรรมและองค์ประกอบของ Kubernetes” ฟรีให้อ่านที่นี่บนเว็บ เพื่อปฏิบัติแบบโต้ตอบ (ตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7) และปลดล็อคส่วนที่เหลือของคอร์ส Docker & Kubernetes for Developers ให้อัปเกรดเป็น CoddyKit PRO คอร์ส Docker & Kubernetes for Developers มีบทเรียนทั้งหมด 4 บทเรียน

คุณจะเรียนรู้อะไรในบทเรียน “สถาปัตยกรรมและองค์ประกอบของ Kubernetes”

สำรวจองค์ประกอบสำคัญของคลัสเตอร์ Kubernetes รวมถึงโหนดหลัก โหนดผู้ปฏิบัติงาน พ็อด และตัวควบคุม คุณปฏิบัติ Docker & Kubernetes for Developers ด้วยโค้ดที่ใช้งานได้จริงที่คุณเรียกใช้โดยตรงในเบราว์เซอร์ และติวเตอร์ AI ตลอด 24/7 ตอบคำถามของคุณขณะที่คุณไปผ่านบทเรียน

คุณต้องมีประสบการณ์ก่อนที่จะเริ่มเรียน Docker & Kubernetes for Developers หรือไม่

ไม่จำเป็นต้องมีประสบการณ์มาก่อน Docker & Kubernetes for Developers บน CoddyKit ออกแบบมาสำหรับผู้เริ่มต้นไปจนถึงผู้เรียนขั้นสูง คุณสามารถเริ่มต้นที่นี่หรือเริ่มจากตัวแรกและเรียนด้วยความเร็วของคุณเอง นี่คือบทเรียนที่ 2 จากทั้งหมด 4 บทเรียน

บทเรียน “สถาปัตยกรรมและองค์ประกอบของ Kubernetes” ใช้เวลานานแค่ไหน

บทเรียน CoddyKit ส่วนใหญ่ใช้เวลาประมาณ 5–10 นาที แต่ละบทเรียนจึงสั้นและเป็นแบบโต้ตอบ คุณสามารถก้าวหน้าอย่างต่อเนื่องและกลับมาเรียนต่อจากตรงที่เพิ่งหยุดบนเว็บและแอปได้เลย

ฉันเขียนและรันโค้ดในบทเรียน Docker & Kubernetes for Developers นี้ได้ไหม

ได้ บทเรียน Docker & Kubernetes for Developers ทุกบทมีตัวแก้ไขโค้ดในตัว คุณจึงเขียนและรันโค้ดจริงได้เลยในเบราว์เซอร์ และได้รับข้อเสนอแนะจาก AI ในทันที — ไม่ต้องติดตั้งในเครื่องของคุณ

บทเรียนทั้งหมดในหลักสูตรนี้

  1. บทนำสู่ Kubernetes และความสำคัญของ Kubernetes
  2. สถาปัตยกรรมและองค์ประกอบของ Kubernetes
  3. การนำพ็อดแรกไปใช้งาน
  4. ทำงานกับ kubectl: เครื่องมือควบคุมคลัสเตอร์ของคุณ
← กลับไปที่ Docker & Kubernetes for Developers