Skip to content

Commit 9a5dc73

Browse files
authored
Merge pull request #29814 from steven-my/29329-translation-for-admin-2
[zh] translation for admin2
2 parents 41896a5 + 864a380 commit 9a5dc73

File tree

7 files changed

+147
-87
lines changed

7 files changed

+147
-87
lines changed

content/zh/docs/tasks/administer-cluster/declare-network-policy.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ This document helps you get started using the Kubernetes [NetworkPolicy API](/do
3030
<!--
3131
Make sure you've configured a network provider with network policy support. There are a number of network providers that support NetworkPolicy, including:
3232
33+
* [Antrea](/docs/tasks/administer-cluster/network-policy-provider/antrea-network-policy/)
3334
* [Calico](/docs/tasks/administer-cluster/network-policy-provider/calico-network-policy/)
3435
* [Cilium](/docs/tasks/administer-cluster/network-policy-provider/cilium-network-policy/)
3536
* [Kube-router](/docs/tasks/administer-cluster/network-policy-provider/kube-router-network-policy/)
@@ -38,6 +39,7 @@ Make sure you've configured a network provider with network policy support. Ther
3839
-->
3940
你首先需要有一个支持网络策略的 Kubernetes 集群。已经有许多支持 NetworkPolicy 的网络提供商,包括:
4041

42+
* [Antrea](/zh/docs/tasks/administer-cluster/network-policy-provider/antrea-network-policy/)
4143
* [Calico](/zh/docs/tasks/administer-cluster/network-policy-provider/calico-network-policy/)
4244
* [Cilium](/zh/docs/tasks/administer-cluster/network-policy-provider/cilium-network-policy/)
4345
* [Kube-router](/zh/docs/tasks/administer-cluster/network-policy-provider/kube-router-network-policy/)

content/zh/docs/tasks/administer-cluster/extended-resource-node.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ Host: k8s-master:8080
6767

6868
<!--
6969
Note that Kubernetes does not need to know what a dongle is or what a dongle is for.
70-
The preceding PATCH request just tells Kubernetes that your Node has four things that
70+
The preceding PATCH request tells Kubernetes that your Node has four things that
7171
you call dongles.
7272
7373
Start a proxy, so that you can easily send requests to the Kubernetes API server:
7474
-->
7575
注意:Kubernetes 不需要了解 dongle 资源的含义和用途。
76-
前面的 PATCH 请求仅仅告诉 Kubernetes 你的节点拥有四个你称之为 dongle 的东西。
76+
前面的 PATCH 请求告诉 Kubernetes 你的节点拥有四个你称之为 dongle 的东西。
7777

7878
启动一个代理(proxy),以便你可以很容易地向 Kubernetes API server 发送请求:
7979

content/zh/docs/tasks/administer-cluster/namespaces-walkthrough.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,9 +345,9 @@ Apply the manifest to create a Deployment
345345
应用清单文件来创建 Deployment。
346346
347347
<!--
348-
We have just created a deployment whose replica size is 2 that is running the pod called `snowflake` with a basic container that just serves the hostname.
348+
We have created a deployment whose replica size is 2 that is running the pod called `snowflake` with a basic container that serves the hostname.
349349
-->
350-
我们刚刚创建了一个副本大小为 2 的 Deployment,该 Deployment 运行名为 `snowflake` 的 Pod,
350+
我们创建了一个副本大小为 2 的 Deployment,该 Deployment 运行名为 `snowflake` 的 Pod,
351351
其中包含一个仅提供主机名服务的基本容器。
352352
353353
```shell
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<!--
2+
---
3+
title: Use Antrea for NetworkPolicy
4+
content_type: task
5+
weight: 10
6+
---
7+
-->
8+
---
9+
title: 使用 Antrea 提供 NetworkPolicy
10+
content_type: task
11+
weight: 10
12+
---
13+
14+
<!-- overview -->
15+
<!--
16+
This page shows how to install and use Antrea CNI plugin on Kubernetes.
17+
For background on Project Antrea, read the [Introduction to Antrea](https://antrea.io/docs/).
18+
-->
19+
本页展示了如何在 kubernetes 中安装和使用 Antrea CNI 插件。
20+
要了解 Antrea 项目的背景,请阅读 [Antrea 介绍](https://antrea.io/docs/)
21+
22+
## {{% heading "prerequisites" %}}
23+
24+
<!--
25+
You need to have a Kubernetes cluster. Follow the
26+
[kubeadm getting started guide](/docs/reference/setup-tools/kubeadm/) to bootstrap one.
27+
-->
28+
你需要拥有一个 kuernetes 集群。
29+
遵循 [kubeadm 入门指南](/zh/docs/reference/setup-tools/kubeadm/)自行创建一个。
30+
31+
<!-- steps -->
32+
33+
<!--
34+
## Deploying Antrea with kubeadm
35+
36+
Follow [Getting Started](https://github.com/vmware-tanzu/antrea/blob/main/docs/getting-started.md) guide to deploy Antrea for kubeadm.
37+
-->
38+
## 使用 kubeadm 部署 Antrea
39+
遵循[入门](https://github.com/vmware-tanzu/antrea/blob/main/docs/getting-started.md)指南
40+
为 kubeadm 部署 Antrea 。
41+
42+
## {{% heading "whatsnext" %}}
43+
44+
<!--
45+
Once your cluster is running, you can follow the [Declare Network Policy](/docs/tasks/administer-cluster/declare-network-policy/) to try out Kubernetes NetworkPolicy.
46+
-->
47+
一旦你的集群已经运行,你可以遵循
48+
[声明网络策略](/zh/docs/tasks/administer-cluster/declare-network-policy/)
49+
来尝试 Kubernetes NetworkPolicy。

content/zh/docs/tasks/administer-cluster/network-policy-provider/calico-network-policy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ Decide whether you want to deploy a [cloud](#creating-a-calico-cluster-with-goog
2929
**先决条件**: [gcloud](https://cloud.google.com/sdk/docs/quickstarts)
3030

3131
<!--
32-
1. To launch a GKE cluster with Calico, just include the `--enable-network-policy` flag.
32+
1. To launch a GKE cluster with Calico, include the `--enable-network-policy` flag.
3333
-->
34-
1. 启动一个带有 Calico 的 GKE 集群,只需加上参数 `--enable-network-policy`
34+
1. 启动一个带有 Calico 的 GKE 集群,需要加上参数 `--enable-network-policy`
3535

3636
**语法**
3737
```shell

content/zh/docs/tasks/administer-cluster/network-policy-provider/cilium-network-policy.md

Lines changed: 42 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -33,62 +33,71 @@ For background on Cilium, read the [Introduction to Cilium](https://docs.cilium.
3333
## Deploying Cilium on Minikube for Basic Testing
3434
3535
To get familiar with Cilium easily you can follow the
36-
[Cilium Kubernetes Getting Started Guide](https://docs.cilium.io/en/stable/gettingstarted/minikube/)
36+
[Cilium Kubernetes Getting Started Guide](https://docs.cilium.io/en/stable/gettingstarted/k8s-install-default/)
3737
to perform a basic DaemonSet installation of Cilium in minikube.
3838
39-
To start minikube, minimal version required is >= v1.3.1, run the with the
39+
To start minikube, minimal version required is >= v1.5.2, run the with the
4040
following arguments:
4141
-->
4242
## 在 Minikube 上部署 Cilium 用于基本测试
4343

4444
为了轻松熟悉 Cilium 你可以根据
45-
[Cilium Kubernetes 入门指南](https://docs.cilium.io/en/stable/gettingstarted/minikube/)
45+
[Cilium Kubernetes 入门指南](https://docs.cilium.io/en/stable/gettingstarted/k8s-install-default/s)
4646
在 minikube 中执行一个 cilium 的基本 DaemonSet 安装。
4747

48-
要启动 minikube,需要的最低版本为 1.3.1,使用下面的参数运行:
48+
要启动 minikube,需要的最低版本为 1.5.2,使用下面的参数运行:
4949

5050
```shell
5151
minikube version
5252
```
5353
```
54-
minikube version: v1.3.1
54+
minikube version: v1.5.2
5555
```
5656

5757
```shell
5858
minikube start --network-plugin=cni --memory=4096
5959
```
6060

6161
<!--
62-
Mount the BPF filesystem:
62+
For minikube you can install Cilium using its CLI tool. Cilium will
63+
automatically detect the cluster configuration and will install the appropriate
64+
components for a successful installation:
6365
-->
64-
挂载 BPF 文件系统:
66+
对于 minikube 你可以使用 Cilium 的 CLI 工具安装它。
67+
Cilium 将自动检测集群配置并为成功的集群部署选择合适的组件。
6568

6669
```shell
67-
minikube ssh -- sudo mount bpffs -t bpf /sys/fs/bpf
70+
curl -LO https://github.com/cilium/cilium-cli/releases/latest/download/cilium-linux-amd64.tar.gz
71+
sudo tar xzvfC cilium-linux-amd64.tar.gz /usr/local/bin
72+
rm cilium-linux-amd64.tar.gz
73+
cilium install
6874
```
69-
70-
<!--
71-
For minikube you can deploy this simple ''all-in-one'' YAML file that includes
72-
DaemonSet configurations for Cilium as well as appropriate RBAC settings:
73-
-->
74-
在 minikube 环境中,你可以部署下面的"一体化" YAML 文件,其中包含 Cilium
75-
的 DaemonSet 配置以及适当的 RBAC 配置:
76-
77-
78-
```shell
79-
kubectl create -f https://raw.githubusercontent.com/cilium/cilium/v1.8/install/kubernetes/quick-install.yaml
80-
```
81-
8275
```
83-
configmap/cilium-config created
84-
serviceaccount/cilium created
85-
serviceaccount/cilium-operator created
86-
clusterrole.rbac.authorization.k8s.io/cilium created
87-
clusterrole.rbac.authorization.k8s.io/cilium-operator created
88-
clusterrolebinding.rbac.authorization.k8s.io/cilium created
89-
clusterrolebinding.rbac.authorization.k8s.io/cilium-operator created
90-
daemonset.apps/cilium create
91-
deployment.apps/cilium-operator created
76+
🔮 Auto-detected Kubernetes kind: minikube
77+
✨ Running "minikube" validation checks
78+
✅ Detected minikube version "1.20.0"
79+
ℹ️ Cilium version not set, using default version "v1.10.0"
80+
🔮 Auto-detected cluster name: minikube
81+
🔮 Auto-detected IPAM mode: cluster-pool
82+
🔮 Auto-detected datapath mode: tunnel
83+
🔑 Generating CA...
84+
2021/05/27 02:54:44 [INFO] generate received request
85+
2021/05/27 02:54:44 [INFO] received CSR
86+
2021/05/27 02:54:44 [INFO] generating key: ecdsa-256
87+
2021/05/27 02:54:44 [INFO] encoded CSR
88+
2021/05/27 02:54:44 [INFO] signed certificate with serial number 48713764918856674401136471229482703021230538642
89+
🔑 Generating certificates for Hubble...
90+
2021/05/27 02:54:44 [INFO] generate received request
91+
2021/05/27 02:54:44 [INFO] received CSR
92+
2021/05/27 02:54:44 [INFO] generating key: ecdsa-256
93+
2021/05/27 02:54:44 [INFO] encoded CSR
94+
2021/05/27 02:54:44 [INFO] signed certificate with serial number 3514109734025784310086389188421560613333279574
95+
🚀 Creating Service accounts...
96+
🚀 Creating Cluster roles...
97+
🚀 Creating ConfigMap...
98+
🚀 Creating Agent DaemonSet...
99+
🚀 Creating Operator Deployment...
100+
⌛ Waiting for Cilium to be installed...
92101
```
93102

94103
<!--
@@ -126,15 +135,15 @@ this list of Pods run:
126135
部署使用 Cilium 的集群会添加 Pods 到 `kube-system` 命名空间。要查看 Pod 列表,运行:
127136

128137
```shell
129-
kubectl get pods --namespace=kube-system
138+
kubectl get pods --namespace=kube-system -l k8s-app=cilium
130139
```
131140

132141
<!-- You'll see a list of Pods similar to this: -->
133142
你将看到像这样的 Pods 列表:
134143

135144
```console
136-
NAME READY STATUS RESTARTS AGE
137-
cilium-6rxbd 1/1 Running 0 1m
145+
NAME READY STATUS RESTARTS AGE
146+
cilium-kkdhz 1/1 Running 0 3m23s
138147
...
139148
```
140149

0 commit comments

Comments
 (0)