Skip to content

Commit 2efa86d

Browse files
committed
[zh-cn]sync create-cluster/cluster-intro
Signed-off-by: xin.li <xin.li@daocloud.io>
1 parent 8cd43fb commit 2efa86d

File tree

2 files changed

+142
-190
lines changed

2 files changed

+142
-190
lines changed

content/zh-cn/docs/tutorials/kubernetes-basics/create-cluster/cluster-intro.html

Lines changed: 0 additions & 190 deletions
This file was deleted.
Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
---
2+
title: 使用 Minikube 创建集群
3+
weight: 10
4+
---
5+
<!--
6+
title: Using Minikube to Create a Cluster
7+
weight: 10
8+
-->
9+
10+
## {{% heading "objectives" %}}
11+
12+
<!--
13+
* Learn what a Kubernetes cluster is.
14+
* Learn what Minikube is.
15+
* Start a Kubernetes cluster on your computer.
16+
-->
17+
* 了解 Kubernetes 集群。
18+
* 了解 Minikube。
19+
* 在你的电脑上启动一个 Kubernetes 集群。
20+
21+
<!--
22+
## Kubernetes Clusters
23+
-->
24+
## Kubernetes 集群
25+
26+
{{% alert %}}
27+
<!--
28+
_Kubernetes is a production-grade, open-source platform that orchestrates
29+
the placement (scheduling) and execution of application containers
30+
within and across computer clusters._
31+
-->
32+
**Kubernetes 是一个生产级别的开源平台,
33+
可编排在计算机集群内和跨计算机集群的应用容器的部署(调度)和执行。**
34+
{{% /alert %}}
35+
36+
<!--
37+
**Kubernetes coordinates a highly available cluster of computers that are connected
38+
to work as a single unit.** The abstractions in Kubernetes allow you to deploy
39+
containerized applications to a cluster without tying them specifically to individual
40+
machines. To make use of this new model of deployment, applications need to be packaged
41+
in a way that decouples them from individual hosts: they need to be containerized.
42+
Containerized applications are more flexible and available than in past deployment models,
43+
where applications were installed directly onto specific machines as packages deeply
44+
integrated into the host. **Kubernetes automates the distribution and scheduling of
45+
application containers across a cluster in a more efficient way.** Kubernetes is an
46+
open-source platform and is production-ready.
47+
-->
48+
**Kubernetes 协调一个高可用计算机集群,每个计算机互相连接之后作为同一个工作单元运行。**
49+
Kubernetes 中的抽象允许你将容器化的应用部署到集群,而无需将它们绑定到某个特定的独立计算机。
50+
为了使用这种新的部署模型,需要以将应用与单个主机解耦的方式打包:它们需要被容器化。
51+
与过去的那种应用直接以包的方式深度与主机集成的部署模型相比,容器化应用更灵活、更可用。
52+
**Kubernetes 以更高效的方式跨集群自动分布和调度应用容器。**
53+
Kubernetes 是一个开源平台,并且可应用于生产环境。
54+
55+
<!--
56+
A Kubernetes cluster consists of two types of resources:
57+
58+
* The **Control Plane** coordinates the cluster
59+
* **Nodes** are the workers that run applications
60+
-->
61+
一个 Kubernetes 集群包含两种类型的资源:
62+
63+
* **控制面(Control Plane)** 调度整个集群
64+
* **节点(Nodes)** 负责运行应用
65+
66+
<!--
67+
### Cluster Diagram
68+
69+
{{< figure src="/docs/tutorials/kubernetes-basics/public/images/module_01_cluster.svg" style="width: 100%;" >}}
70+
71+
**The Control Plane is responsible for managing the cluster.** The Control Plane
72+
coordinates all activities in your cluster, such as scheduling applications, maintaining
73+
applications' desired state, scaling applications, and rolling out new updates.
74+
-->
75+
### 集群图
76+
77+
{{< figure src="/docs/tutorials/kubernetes-basics/public/images/module_01_cluster.svg" style="width: 100%;" >}}
78+
79+
**控制面负责管理整个集群。**
80+
控制面协调集群中的所有活动,例如调度应用、维护应用的期望状态、对应用扩容以及将新的更新上线等等。
81+
82+
83+
{{% alert %}}
84+
<!--
85+
_Control Planes manage the cluster and the nodes that are used to host the running
86+
applications._
87+
-->
88+
**控制面管理集群,节点用于托管运行中的应用**
89+
{{% /alert %}}
90+
91+
<!--
92+
**A node is a VM or a physical computer that serves as a worker machine in a Kubernetes
93+
cluster.** Each node has a Kubelet, which is an agent for managing the node and
94+
communicating with the Kubernetes control plane. The node should also have tools for
95+
handling container operations, such as {{< glossary_tooltip text="containerd" term_id="containerd" >}}
96+
or {{< glossary_tooltip term_id="cri-o" >}}. A Kubernetes cluster that handles production
97+
traffic should have a minimum of three nodes because if one node goes down, both an
98+
[etcd](/docs/concepts/architecture/#etcd) member and a control plane instance are lost,
99+
and redundancy is compromised. You can mitigate this risk by adding more control plane nodes.
100+
-->
101+
**节点是一个虚拟机或者物理机,它在 Kubernetes 集群中充当工作机器的角色。**
102+
每个节点都有 Kubelet,它管理节点而且是节点与控制面通信的代理。
103+
节点还应该具有用于处理容器操作的工具,例如 {{< glossary_tooltip text="containerd" term_id="containerd" >}}
104+
或 {{< glossary_tooltip term_id="cri-o" >}}。
105+
处理生产级流量的 Kubernetes 集群至少应具有三个节点,因为如果只有一个节点,出现故障时其对应的
106+
[etcd](/zh-cn/docs/concepts/architecture/#etcd) 成员和控制面实例都会丢失,
107+
并且冗余会受到影响。你可以通过添加更多控制面节点来降低这种风险。
108+
109+
<!--
110+
When you deploy applications on Kubernetes, you tell the control plane to start
111+
the application containers. The control plane schedules the containers to run on
112+
the cluster's nodes. **Node-level components, such as the kubelet, communicate
113+
with the control plane using the [Kubernetes API](/docs/concepts/overview/kubernetes-api/)**,
114+
which the control plane exposes. End users can also use the Kubernetes API directly
115+
to interact with the cluster.
116+
-->
117+
在 Kubernetes 上部署应用时,你告诉控制面启动应用容器。
118+
控制面就编排容器在集群的节点上运行。
119+
**节点使用控制面所公布的 [Kubernetes API](/zh-cn/docs/concepts/overview/kubernetes-api/)**
120+
与控制面通信。终端用户也可以使用 Kubernetes API 与集群交互。
121+
122+
<!--
123+
A Kubernetes cluster can be deployed on either physical or virtual machines. To
124+
get started with Kubernetes development, you can use Minikube. Minikube is a lightweight
125+
Kubernetes implementation that creates a VM on your local machine and deploys a
126+
simple cluster containing only one node. Minikube is available for Linux, macOS,
127+
and Windows systems. The Minikube CLI provides basic bootstrapping operations for
128+
working with your cluster, including start, stop, status, and delete.
129+
-->
130+
Kubernetes 既可以部署在物理机上也可以部署在虚拟机上。你可以使用 Minikube 开始部署 Kubernetes 集群。
131+
Minikube 是一种轻量级的 Kubernetes 实现,可在本地计算机上创建 VM 并部署仅包含一个节点的简单集群。
132+
Minikube 可用于 Linux、macOS 和 Windows 系统。Minikube CLI 提供了用于引导集群工作的多种操作,
133+
包括启动、停止、查看状态和删除。
134+
135+
## {{% heading "whatsnext" %}}
136+
137+
<!--
138+
* Tutorial [Hello Minikube](/docs/tutorials/hello-minikube/).
139+
* Learn more about [Cluster Architecture](/docs/concepts/architecture/).
140+
-->
141+
* [Hello Minikube](/zh-cn/docs/tutorials/hello-minikube/) 教程。
142+
* 了解更多关于[集群架构](/zh-cn/docs/concepts/architecture/)方面的知识。

0 commit comments

Comments
 (0)