mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-03-26 19:55:23 +00:00
Fix and update
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
## Kubernetes 简介
|
||||
|
||||
Kubernetes 简介 示意图如下:
|
||||
|
||||

|
||||
|
||||
### 什么是 Kubernetes
|
||||
@@ -28,19 +30,24 @@ Kubernetes 完美解决了这些问题。
|
||||
|
||||
### 核心概念
|
||||
|
||||
#### Pod (豆荚)
|
||||
#### Pod(豆荚)
|
||||
|
||||
Kubernetes 的最小调度单位。一个 Pod 可以包含一个或多个紧密协作的容器(共享网络和存储)。就像豌豆荚里的豌豆一样。
|
||||
|
||||
#### Node (节点)
|
||||
#### Node(节点)
|
||||
|
||||
运行 Pod 的物理机或虚拟机。
|
||||
|
||||
#### Deployment (部署)
|
||||
#### Deployment(部署)
|
||||
|
||||
定义应用的期望状态(如:需要 3 个副本,镜像版本为 v1)。K8s 会持续确保当前状态符合期望状态。
|
||||
|
||||
#### Service (服务)
|
||||
#### Service(服务)
|
||||
|
||||
定义一组 Pod 的访问策略。提供稳定的 Cluster IP 和 DNS 名称,负责负载均衡。
|
||||
|
||||
#### Namespace (命名空间)
|
||||
#### Namespace(命名空间)
|
||||
|
||||
用于多租户资源隔离。
|
||||
|
||||
---
|
||||
@@ -60,7 +67,7 @@ Kubernetes 的最小调度单位。一个 Pod 可以包含一个或多个紧密
|
||||
|
||||
### 架构
|
||||
|
||||
Kubernetes 也是 C/S 架构,由 **Master (控制平面)** 和 **Worker (工作节点)** 组成:
|
||||
Kubernetes 也是 C/S 架构,由 **Master (控制平面)**和**Worker (工作节点)** 组成:
|
||||
|
||||
- **Control Plane**:负责决策(API Server, Scheduler, Controller Manager, etcd)
|
||||
- **Worker Node**:负责干活(Kubelet, Kube-proxy, Container Runtime)
|
||||
|
||||
Reference in New Issue
Block a user