Skip to content

Commit 506d2e7

Browse files
authored
[zh-cn] sync task files of task-10 (#40084)
Signed-off-by: Guangwen Feng <[email protected]>
1 parent 434469c commit 506d2e7

File tree

4 files changed

+32
-21
lines changed

4 files changed

+32
-21
lines changed

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

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,16 @@ This example demonstrates how to use Kubernetes namespaces to subdivide your clu
5252
This example assumes the following:
5353
5454
1. You have an [existing Kubernetes cluster](/docs/setup/).
55-
2. You have a basic understanding of Kubernetes _[Pods](/docs/concepts/workloads/pods/pod/)_, _[Services](/docs/concepts/services-networking/service/)_, and _[Deployments](/docs/concepts/workloads/controllers/deployment/)_.
55+
2. You have a basic understanding of Kubernetes {{< glossary_tooltip text="Pods" term_id="pod" >}}, {{< glossary_tooltip term_id="service" text="Services" >}}, and {{< glossary_tooltip text="Deployments" term_id="deployment" >}}.
5656
-->
57-
## 环境准备
57+
## 环境准备 {#prerequisites}
5858

5959
此示例作如下假设:
6060

6161
1. 你已拥有一个[配置好的 Kubernetes 集群](/zh-cn/docs/setup/)
62-
2. 你已对 Kubernetes 的 _[Pods](/zh-cn/docs/concepts/workloads/pods/)_
63-
_[Services](/zh-cn/docs/concepts/services-networking/service/)_
64-
_[Deployments](/zh-cn/docs/concepts/workloads/controllers/deployment/)_
62+
2. 你已对 Kubernetes 的 {{< glossary_tooltip text="Pod" term_id="pod" >}}
63+
{{< glossary_tooltip text="服务" term_id="service" >}}
64+
{{< glossary_tooltip text="Deployment" term_id="deployment" >}}
6565
有基本理解。
6666

6767
<!--
@@ -70,7 +70,7 @@ This example assumes the following:
7070
By default, a Kubernetes cluster will instantiate a default namespace when provisioning the cluster to hold the default set of Pods,
7171
Services, and Deployments used by the cluster.
7272
-->
73-
## 理解默认名字空间
73+
## 理解默认名字空间 {#understand-the-default-namespace}
7474

7575
默认情况下,Kubernetes 集群会在配置集群时实例化一个默认名字空间,用以存放集群所使用的默认
7676
Pod、Service 和 Deployment 集合。
@@ -93,7 +93,7 @@ default Active 13m
9393
9494
For this exercise, we will create two additional Kubernetes namespaces to hold our content.
9595
-->
96-
## 创建新的名字空间
96+
## 创建新的名字空间 {#create-new-namespaces}
9797

9898
在本练习中,我们将创建两个额外的 Kubernetes 名字空间来保存我们的内容。
9999

@@ -187,7 +187,7 @@ Users interacting with one namespace do not see the content in another namespace
187187
188188
To demonstrate this, let's spin up a simple Deployment and Pods in the `development` namespace.
189189
-->
190-
## 在每个名字空间中创建 pod
190+
## 在每个名字空间中创建 Pod {#create-pods-in-each-namespace}
191191

192192
Kubernetes 名字空间为集群中的 Pod、Service 和 Deployment 提供了作用域。
193193

@@ -255,7 +255,7 @@ kubectl config set-context prod --namespace=production \
255255
```
256256

257257
<!--
258-
By default, the above commands adds two contexts that are saved into file
258+
By default, the above commands add two contexts that are saved into file
259259
`.kube/config`. You can now view the contexts and alternate against the two
260260
new request contexts depending on which namespace you wish to work against.
261261
-->
@@ -346,6 +346,10 @@ Apply the manifest to create a Deployment
346346
-->
347347
应用清单文件来创建 Deployment。
348348
349+
```shell
350+
kubectl apply -f https://k8s.io/examples/admin/snowflake-deployment.yaml
351+
```
352+
349353
<!--
350354
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.
351355
-->

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
title: 使用 Calico 提供 NetworkPolicy
33
content_type: task
4-
weight: 10
4+
weight: 20
55
---
66
<!--
77
reviewers:
88
- caseydavenport
99
title: Use Calico for NetworkPolicy
1010
content_type: task
11-
weight: 10
11+
weight: 20
1212
-->
1313

1414
<!-- overview -->
@@ -69,12 +69,12 @@ Decide whether you want to deploy a [cloud](#creating-a-calico-cluster-with-goog
6969
## Creating a local Calico cluster with kubeadm
7070
7171
To get a local single-host Calico cluster in fifteen minutes using kubeadm, refer to the
72-
[Calico Quickstart](https://docs.projectcalico.org/latest/getting-started/kubernetes/).
72+
[Calico Quickstart](https://projectcalico.docs.tigera.io/getting-started/kubernetes/).
7373
-->
7474
## 使用 kubeadm 创建一个本地 Calico 集群 {#local-cluster}
7575

7676
使用 kubeadm 在 15 分钟内得到一个本地单主机 Calico 集群,请参考
77-
[Calico 快速入门](https://docs.projectcalico.org/latest/getting-started/kubernetes/)
77+
[Calico 快速入门](https://projectcalico.docs.tigera.io/getting-started/kubernetes/)
7878

7979
## {{% heading "whatsnext" %}}
8080

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: 使用 Cilium 提供 NetworkPolicy
33
content_type: task
4-
weight: 20
4+
weight: 30
55
---
66

77
<!--
@@ -10,18 +10,18 @@ reviewers:
1010
- aanm
1111
title: Use Cilium for NetworkPolicy
1212
content_type: task
13-
weight: 20
13+
weight: 30
1414
-->
1515

1616
<!-- overview -->
1717
<!--
1818
This page shows how to use Cilium for NetworkPolicy.
1919
20-
For background on Cilium, read the [Introduction to Cilium](https://docs.cilium.io/en/stable/intro).
20+
For background on Cilium, read the [Introduction to Cilium](https://docs.cilium.io/en/stable/overview/intro).
2121
-->
2222
本页展示如何使用 Cilium 提供 NetworkPolicy。
2323

24-
关于 Cilium 的背景知识,请阅读 [Cilium 介绍](https://docs.cilium.io/en/stable/intro)
24+
关于 Cilium 的背景知识,请阅读 [Cilium 介绍](https://docs.cilium.io/en/stable/overview/intro)
2525

2626
## {{% heading "prerequisites" %}}
2727

@@ -129,14 +129,14 @@ L7 (如 HTTP)的安全策略。
129129
## Deploying Cilium for Production Use
130130
131131
For detailed instructions around deploying Cilium for production, see:
132-
[Cilium Kubernetes Installation Guide](https://docs.cilium.io/en/stable/concepts/kubernetes/intro/)
132+
[Cilium Kubernetes Installation Guide](https://docs.cilium.io/en/stable/network/kubernetes/concepts/)
133133
This documentation includes detailed requirements, instructions and example
134134
production DaemonSet files.
135135
-->
136136
## 部署 Cilium 用于生产用途 {#deployment-cilium-for-production-use}
137137

138138
关于部署 Cilium 用于生产的详细说明,请参见
139-
[Cilium Kubernetes 安装指南](https://docs.cilium.io/en/stable/concepts/kubernetes/intro/)
139+
[Cilium Kubernetes 安装指南](https://docs.cilium.io/en/stable/network/kubernetes/concepts/)
140140
此文档包括详细的需求、说明和生产用途 DaemonSet 文件示例。
141141

142142
<!-- discussion -->

content/zh-cn/docs/tasks/administer-cluster/network-policy-provider/kube-router-network-policy.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
---
22
title: 使用 kube-router 提供 NetworkPolicy
33
content_type: task
4-
weight: 30
4+
weight: 40
55
---
6+
<!--
7+
reviewers:
8+
- murali-reddy
9+
title: Use Kube-router for NetworkPolicy
10+
content_type: task
11+
weight: 40
12+
-->
613

714
<!-- overview -->
815
<!--
@@ -25,7 +32,7 @@ You need to have a Kubernetes cluster running. If you do not already have a clus
2532
2633
The Kube-router Addon comes with a Network Policy Controller that watches Kubernetes API server for any NetworkPolicy and pods updated and configures iptables rules and ipsets to allow or block traffic as directed by the policies. Please follow the [trying Kube-router with cluster installers](https://www.kube-router.io/docs/user-guide/#try-kube-router-with-cluster-installers) guide to install Kube-router addon.
2734
-->
28-
## 安装 kube-router 插件
35+
## 安装 kube-router 插件 {#installing-kube-router-addon}
2936

3037
kube-router 插件自带一个网络策略控制器,监视来自于 Kubernetes API 服务器的
3138
NetworkPolicy 和 Pod 的变化,根据策略指示配置 iptables 规则和 ipsets 来允许或阻止流量。

0 commit comments

Comments
 (0)