KubernetesKubernetes
12 ghi chú12 notes
- 01Giới thiệu và Kiến trúcIntroduction and ArchitectureĐể hiểu vì sao Kubernetes tồn tại, hãy nhìn theo hành trình đóng gói ứng dụng. Bare-metal chạy một app trên một server — lãng phí và cấp phát chậm. Máy ảo (VM) nhồi nhiều OS cô lập lên cùng một host, nhưng mỗi VM mang…To see why Kubernetes exists, follow the arc of application packaging. Bare-metal ran one app per server — wasteful and slow to provision. Virtual machines packed several isolated OSes onto one host, but each VM carries…19 Th7, 2026Jul 19, 2026
- 02Pod và WorkloadPods and WorkloadsSự phân tầng này là có chủ đích. Một Pod đứng một mình thì mong manh và không được quản lý: nếu nó chết, nó cứ chết vậy, và nếu node của nó chết, nó đơn giản là biến mất. Controller thêm vòng lặp reconciliation quanh…A Pod is the smallest deployable unit in Kubernetes — not a container, but a wrapper around one or more tightly-coupled containers that share a network namespace, an IP address, and storage volumes. You rarely create…19 Th7, 2026Jul 19, 2026
- 03Services and NetworkingServices and NetworkingNetworking là nơi Kubernetes không còn là "Docker kèm scheduler" nữa mà trở thành một hệ phân tán thực thụ. Pod vốn ephemeral — chúng sinh ra rồi mất đi, bị reschedule sang node khác, và đổi IP mỗi lần như thế. Nhưng…Networking is where Kubernetes stops being "Docker with a scheduler" and becomes a distributed system. Pods are ephemeral — they come and go, get rescheduled onto other nodes, and change IPs every time. Yet applications…19 Th7, 2026Jul 19, 2026
- 04StorageStorageContainer vốn ephemeral theo thiết kế: khi một Pod chết, lớp container ghi được của nó chết theo. Điều đó ổn với service stateless, nhưng hệ thống thực cần giữ dữ liệu — database, message queue, file upload, cache…Containers are ephemeral by design: when a Pod dies, its writable container layer dies with it. That is fine for stateless services, but real systems need to keep data — databases, message queues, uploaded files…19 Th7, 2026Jul 19, 2026
- 05Configuration and SecretsConfiguration and SecretsMột ứng dụng không chỉ là image của nó. Cùng một container cần database URL, feature flag, log level, API key và mức tài nguyên khác nhau tùy theo nơi nó chạy. Nguyên tắc twelve-factor là tách cấu hình ra khỏi image và…An application is more than its image. The same container needs different database URLs, feature flags, log levels, API keys, and resource envelopes depending on where it runs. The twelve-factor principle is to keep…19 Th7, 2026Jul 19, 2026
- 06Scheduling and Resource ManagementScheduling and Resource ManagementKhi bạn tạo một Pod, nó không chạy ngay — nó sinh ra ở trạng thái Pending chưa được gán node. kube-scheduler theo dõi những Pod chưa được schedule này và quyết định, cho từng cái, nó nên đáp xuống node nào. Quyết định…When you create a Pod, it does not run immediately — it is born in the Pending state with no node assigned. The kube-scheduler watches for these unscheduled Pods and decides, for each one, which node it should land on…19 Th7, 2026Jul 19, 2026
- 07Scaling và AutoscalingScaling and AutoscalingScaling là lý do chính khiến hầu hết các team chọn Kubernetes: lời hứa rằng capacity sẽ đi theo nhu cầu thực tế thay vì phải provision cho một mức đỉnh chỉ dựa trên phỏng đoán. Kubernetes cung cấp scaling ở ba tầng…Scaling is the reason most teams adopt Kubernetes in the first place: the promise that capacity follows demand instead of being provisioned for a guessed-at peak. Kubernetes offers scaling at three distinct layers, and…19 Th7, 2026Jul 19, 2026
- 08SecuritySecurityKubernetes mạnh mẽ chính vì nó là một API duy nhất có thể tạo, hủy và kết nối mọi thứ trong cluster — và đó cũng chính là lý do nó là mục tiêu giá trị cao. Một ServiceAccount token bị lộ, một RBAC binding quá rộng, hay…Kubernetes is powerful precisely because it is a single API that can create, destroy, and connect anything in your cluster — which is exactly why it is a high-value target. A compromised ServiceAccount token, an…19 Th7, 2026Jul 19, 2026
- 09Observability & Troubleshooting (Khả năng quan sát & Gỡ lỗi)Observability & TroubleshootingKubernetes là một vòng lặp điều khiển (control loop) liên tục hòa hợp desired state (những gì YAML của bạn khai báo) với actual state (những gì kubelet và scheduler quan sát được). Observability và troubleshooting trên…Kubernetes is a control loop that constantly reconciles desired state (what your YAML says) against actual state (what the kubelet and scheduler observe). Observability and troubleshooting on Kubernetes is the…19 Th7, 2026Jul 19, 2026
- 10Package Management & Templating (Quản lý gói & Tạo template)Package Management & TemplatingManifest Kubernetes thô là YAML tĩnh: một Deployment, một Service, một ConfigMap, mỗi cái hard-code giá trị của một môi trường. Điều đó ổn với một demo và sụp đổ ngay khi bạn có dev, staging và production — bạn kết cục…Raw Kubernetes manifests are static YAML: a Deployment, a Service, a ConfigMap, each hard-coding one environment's values. That works for a demo and collapses the moment you have dev, staging, and production — you end…19 Th7, 2026Jul 19, 2026
- 11Cluster AdministrationCluster AdministrationXây dựng ứng dụng trên Kubernetes và vận hành cụm (cluster) nằm bên dưới nó là hai công việc rất khác nhau. Cluster administration là kỷ luật của day-2: bootstrap một cluster, giữ control plane sẵn sàng cao (high…Building an application on Kubernetes and operating the cluster underneath it are two very different jobs. Cluster administration is the day-2 discipline: bootstrapping a cluster, keeping the control plane highly…19 Th7, 2026Jul 19, 2026
- 12Extending Kubernetes & Hệ sinh tháiExtending Kubernetes & the EcosystemKubernetes đi kèm một tập object dựng sẵn cố định — Pod, Deployment, Service, v.v. — nhưng sức mạnh thực sự của nó là bản thân API có thể mở rộng. Bạn có thể dạy Kubernetes biết về những loại object hoàn toàn mới (một…Kubernetes ships with a fixed set of built-in objects — Pods, Deployments, Services, and so on — but its real power is that the API itself is extensible. You can teach Kubernetes about entirely new kinds of objects (a…19 Th7, 2026Jul 19, 2026
Không tìm thấy ghi chú nào.No notes found.