Skip to content

Commit 565f025

Browse files
authored
Merge pull request #30211 from superleo/branch1
[zh]Concept files to sync for 1.22 #29325 task 12
2 parents afba060 + c5abf03 commit 565f025

File tree

6 files changed

+265
-608
lines changed

6 files changed

+265
-608
lines changed

content/zh/docs/concepts/architecture/nodes.md

Lines changed: 248 additions & 95 deletions
Large diffs are not rendered by default.

content/zh/docs/concepts/cluster-administration/kubelet-garbage-collection.md

Lines changed: 0 additions & 179 deletions
This file was deleted.

content/zh/docs/concepts/cluster-administration/logging.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,21 +151,25 @@ Kubernetes 并不负责轮转日志,而是通过部署工具建立一个解决
151151
<!--
152152
As an example, you can find detailed information about how `kube-up.sh` sets
153153
up logging for COS image on GCP in the corresponding
154-
[`configure-helper` script](https://github.com/kubernetes/kubernetes/blob/{{< param "githubbranch" >}}/cluster/gce/gci/configure-helper.sh).
154+
[`configure-helper` script](https://github.com/kubernetes/kubernetes/blob/master/cluster/gce/gci/configure-helper.sh).
155155
-->
156156
例如,你可以找到关于 `kube-up.sh` 为 GCP 环境的 COS 镜像设置日志的详细信息,
157157
脚本为
158-
[`configure-helper` 脚本](https://github.com/kubernetes/kubernetes/blob/{{< param "githubbranch" >}}/cluster/gce/gci/configure-helper.sh)。
158+
[`configure-helper` 脚本](https://github.com/kubernetes/kubernetes/blob/master/cluster/gce/gci/configure-helper.sh)
159159

160160
<!--
161161
When using a **CRI container runtime**, the kubelet is responsible for rotating the logs and managing the logging directory structure. The kubelet
162-
sends this information to the CRI container runtime and the runtime writes the container logs to the given location. The two kubelet flags `container-log-max-size` and `container-log-max-files` can be used to configure the maximum size for each log file and the maximum number of files allowed for each container respectively.
162+
sends this information to the CRI container runtime and the runtime writes the container logs to the given location.
163+
The two kubelet parameters [`containerLogMaxSize` and `containerLogMaxFiles`](/docs/reference/config-api/kubelet-config.v1beta1/#kubelet-config-k8s-io-v1beta1-KubeletConfiguration)
164+
in [kubelet config file](/docs/tasks/administer-cluster/kubelet-config-file/)
165+
can be used to configure the maximum size for each log file and the maximum number of files allowed for each container respectively.
163166
-->
164167
当使用某 *CRI 容器运行时* 时,kubelet 要负责对日志进行轮换,并
165168
管理日志目录的结构。kubelet 将此信息发送给 CRI 容器运行时,后者
166-
将容器日志写入到指定的位置。kubelet 标志 `container-log-max-size`
167-
`container-log-max-files` 可以用来配置每个日志文件的最大长度
168-
和每个容器可以生成的日志文件个数上限。
169+
将容器日志写入到指定的位置。在 [kubelet 配置文件](/docs/tasks/administer-cluster/kubelet-config-file/)
170+
中的两个 kubelet 参数
171+
[`containerLogMaxSize``containerLogMaxFiles`](/docs/reference/config-api/kubelet-config.v1beta1/#kubelet-config-k8s-io-v1beta1-KubeletConfiguration)
172+
可以用来配置每个日志文件的最大长度和每个容器可以生成的日志文件个数上限。
169173

170174
<!--
171175
When you run [`kubectl logs`](/docs/reference/generated/kubectl/kubectl-commands#logs) as in

content/zh/docs/concepts/cluster-administration/manage-deployment.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ A URL can also be specified as a configuration source, which is handy for deploy
8585
还可以使用 URL 作为配置源,便于直接使用已经提交到 Github 上的配置文件进行部署:
8686

8787
```shell
88-
kubectl apply -f https://raw.githubusercontent.com/kubernetes/website/master/content/zh/examples/application/nginx/nginx-deployment.yaml
88+
kubectl apply -f https://raw.githubusercontent.com/kubernetes/website/main/content/zh/examples/application/nginx/nginx-deployment.yaml
8989
```
9090

9191
```
@@ -252,10 +252,10 @@ The examples we've used so far apply at most a single label to any resource. The
252252
在许多情况下,应使用多个标签来区分集合。
253253

254254
<!--
255-
For instance, different applications would use different values for the `app` label, but a multi-tier application, such as the [guestbook example](https://github.com/kubernetes/examples/tree/{{< param "githubbranch" >}}/guestbook/), would additionally need to distinguish each tier. The frontend could carry the following labels:
255+
For instance, different applications would use different values for the `app` label, but a multi-tier application, such as the [guestbook example](https://github.com/kubernetes/examples/tree/master/guestbook/), would additionally need to distinguish each tier. The frontend could carry the following labels:
256256
-->
257257
例如,不同的应用可能会为 `app` 标签设置不同的值。
258-
但是,类似 [guestbook 示例](https://github.com/kubernetes/examples/tree/{{< param "githubbranch" >}}/guestbook/)
258+
但是,类似 [guestbook 示例](https://github.com/kubernetes/examples/tree/master/guestbook/)
259259
这样的多层应用,还需要区分每一层。前端可以带以下标签:
260260

261261
```yaml

content/zh/docs/concepts/security/overview.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
---
22
title: 云原生安全概述
3+
description: >
4+
在云原生安全的背景下思考 Kubernetes 安全模型。
35
content_type: concept
4-
weight: 10
6+
weight: 1
57
---
68

79
<!-- overview -->
@@ -88,6 +90,7 @@ Amazon Web Services | https://aws.amazon.com/security/ |
8890
Google Cloud Platform | https://cloud.google.com/security/ |
8991
IBM Cloud | https://www.ibm.com/cloud/security |
9092
Microsoft Azure | https://docs.microsoft.com/en-us/azure/security/azure-security |
93+
Oracle Cloud Infrastructure | https://www.oracle.com/security/ |
9194
VMWare VSphere | https://www.vmware.com/security/hardening-guides.html |
9295

9396
{{< /table >}}

0 commit comments

Comments
 (0)