From 9dbaf53f80b4f8060722caa54c955729444887d1 Mon Sep 17 00:00:00 2001 From: Qiming Teng Date: Thu, 12 Nov 2020 15:32:01 +0800 Subject: [PATCH] [zh] Sync changes from English site (1) --- .../concepts/cluster-administration/_index.md | 2 +- .../concepts/cluster-administration/addons.md | 13 +++++++ .../cluster-administration/flow-control.md | 4 +-- .../cluster-administration/logging.md | 11 +++--- .../cluster-administration/networking.md | 36 ++++++++----------- .../cluster-administration/system-metrics.md | 8 +++-- .../docs/concepts/policy/resource-quotas.md | 3 +- 7 files changed, 42 insertions(+), 35 deletions(-) diff --git a/content/zh/docs/concepts/cluster-administration/_index.md b/content/zh/docs/concepts/cluster-administration/_index.md index fa4b1f6f71..91ef1b5cc8 100644 --- a/content/zh/docs/concepts/cluster-administration/_index.md +++ b/content/zh/docs/concepts/cluster-administration/_index.md @@ -102,7 +102,7 @@ Before choosing a guide, here are some considerations: * [证书](/zh/docs/concepts/cluster-administration/certificates/)节描述了使用不同的工具链生成证书的步骤。 * [Kubernetes 容器环境](/zh/docs/concepts/containers/container-environment/)描述了 Kubernetes 节点上由 Kubelet 管理的容器的环境。 -* [控制到 Kubernetes API 的访问](/zh/docs/reference/access-authn-authz/controlling-access/)描述了如何为用户和 service accounts 建立权限许可。 +* [控制到 Kubernetes API 的访问](/zh/docs/concepts/security/controlling-access/)描述了如何为用户和 service accounts 建立权限许可。 * [认证](/docs/reference/access-authn-authz/authentication/)节阐述了 Kubernetes 中的身份认证功能,包括许多认证选项。 * [鉴权](/zh/docs/reference/access-authn-authz/authorization/)从认证中分离出来,用于控制如何处理 HTTP 请求。 * [使用准入控制器](/zh/docs/reference/access-authn-authz/admission-controllers) 阐述了在认证和授权之后拦截到 Kubernetes API 服务的请求的插件。 diff --git a/content/zh/docs/concepts/cluster-administration/addons.md b/content/zh/docs/concepts/cluster-administration/addons.md index 77316222b3..aaed1402d0 100644 --- a/content/zh/docs/concepts/cluster-administration/addons.md +++ b/content/zh/docs/concepts/cluster-administration/addons.md @@ -5,6 +5,8 @@ content_type: concept +{{% thirdparty-content %}} + 针对每个优先级别,输出中还包含一条虚拟记录,对应豁免限制。 @@ -881,4 +881,4 @@ You can make suggestions and feature requests via --> 有关API优先级和公平性的设计细节的背景信息, 请参阅[增强建议](https://github.com/kubernetes/enhancements/blob/master/keps/sig-api-machinery/20190228-priority-and-fairness.md)。 -你可以通过 [SIG APIMachinery](https://github.com/kubernetes/community/tree/master/sig-api-machinery) 提出建议和特性请求。 \ No newline at end of file +你可以通过 [SIG APIMachinery](https://github.com/kubernetes/community/tree/master/sig-api-machinery) 提出建议和特性请求。 diff --git a/content/zh/docs/concepts/cluster-administration/logging.md b/content/zh/docs/concepts/cluster-administration/logging.md index ad44bbc5cb..762fc1c050 100644 --- a/content/zh/docs/concepts/cluster-administration/logging.md +++ b/content/zh/docs/concepts/cluster-administration/logging.md @@ -14,9 +14,9 @@ weight: 60 -应用和系统日志可以让你了解集群内部的运行状况。日志对调试问题和监控集群活动非常有用。 +应用日志可以让你了解应用内部的运行状况。日志对调试问题和监控集群活动非常有用。 大部分现代化应用都有某种日志记录机制;同样地,大多数容器引擎也被设计成支持某种日志记录机制。 针对容器化应用,最简单且受欢迎的日志记录方式就是写入标准输出和标准错误流。 @@ -45,14 +45,13 @@ the description of how logs are stored and handled on the node to be useful. In this section, you can see an example of basic logging in Kubernetes that outputs data to the standard output stream. This demonstration uses -a [pod specification](/examples/debug/counter-pod.yaml) with -a container that writes some text to standard output once per second. +a pod specification with a container that writes some text to standard output +once per second. --> ## Kubernetes 中的基本日志记录 本节,你会看到一个kubernetes 中生成基本日志的例子,该例子中数据被写入到标准输出。 -这里通过一个特定的 [Pod 规约](/examples/debug/counter-pod.yaml) 演示创建一个容器, -并令该容器每秒钟向标准输出写入数据。 +这里的示例为包含一个容器的 Pod 规约,该容器每秒钟向标准输出写入数据。 {{< codenew file="debug/counter-pod.yaml" >}} diff --git a/content/zh/docs/concepts/cluster-administration/networking.md b/content/zh/docs/concepts/cluster-administration/networking.md index fdc5efd0a0..06ff565cff 100644 --- a/content/zh/docs/concepts/cluster-administration/networking.md +++ b/content/zh/docs/concepts/cluster-administration/networking.md @@ -140,6 +140,8 @@ imply any preferential status. 接下来的网络技术是按照首字母排序,顺序本身并无其他意义。 +{{% thirdparty-content %}} + +### Calico + +[Calico](https://docs.projectcalico.org/) 是一个开源的联网及网络安全方案, +用于基于容器、虚拟机和本地主机的工作负载。 +Calico 支持多个数据面,包括:纯 Linux eBPF 的数据面、标准的 Linux 联网数据面 +以及 Windwos HNS 数据面。Calico 在提供完整的联网堆栈的同时,还可与 +[云驱动 CNIs](https://docs.projectcalico.org/networking/determine-best-networking#calico-compatible-cni-plugins-and-cloud-provider-integrations) 联合使用,以保证网络策略实施。 + -### Calico 项目 {#project-calico} - -[Calico 项目](https://docs.projectcalico.org/) 是一个开源的容器网络提供者和网络策略引擎。 - -Calico 提供了高度可扩展的网络和网络解决方案,使用基于与 Internet 相同的 IP 网络原理来连接 Kubernetes Pod, -适用于 Linux (开放源代码)和 Windows(专有-可从 [Tigera](https://www.tigera.io/essentials/) 获得。 -可以无需封装或覆盖即可部署 Calico,以提供高性能,高可扩的数据中心网络。 -Calico 还通过其分布式防火墙为 Kubernetes Pod 提供了基于意图的细粒度网络安全策略。 - -Calico 还可以和其他的网络解决方案(比如 Flannel、[canal](https://github.com/tigera/canal) -或原生 GCE、AWS、Azure 网络等)一起以策略实施模式运行。 - ## 禁用加速器指标 @@ -185,7 +185,9 @@ kubelet 在驱动程序上保持打开状态。这意味着为了执行基础结 现在,收集加速器指标的责任属于供应商,而不是 kubelet。供应商必须提供一个收集指标的容器, 并将其公开给指标服务(例如 Prometheus)。 -[`DisableAcceleratorUsageMetrics` 特性门控](/zh/docs/references/command-line-tools-reference/feature-gate.md#feature-gates-for-alpha-or-beta-features:~:text= DisableAcceleratorUsageMetrics,-false)禁止由 kubelet 收集的指标,并[带有一条时间线,默认情况下会启用此功能](https://github.com/kubernetes/enhancements/tree/411e51027db842355bd489691af897afc1a41a5e/keps/sig-node/1867-disable-accelerator-usage-metrics#graduation-criteria)。 +[`DisableAcceleratorUsageMetrics` 特性门控](/zh/docs/references/command-line-tools-reference/feature-gate.md#feature-gates-for-alpha-or-beta-features:~:text= DisableAcceleratorUsageMetrics,-false) +禁止由 kubelet 收集的指标。 +关于[何时会在默认情况下启用此功能也有一定规划](https://github.com/kubernetes/enhancements/tree/411e51027db842355bd489691af897afc1a41a5e/keps/sig-node/1867-disable-accelerator-usage-metrics#graduation-criteria)。 * 阅读有关指标的 [Prometheus 文本格式](https://github.com/prometheus/docs/blob/master/content/docs/instrumenting/exposition_formats.md#text-based-format) * 查看 [Kubernetes 稳定指标](https://github.com/kubernetes/kubernetes/blob/master/test/instrumentation/testdata/stable-metrics-list.yaml)的列表 -* 阅读有关 [Kubernetes 弃用策略](/docs/reference/using-api/deprecation-policy/#deprecating-a-feature-or-behavior) \ No newline at end of file +* 阅读有关 [Kubernetes 弃用策略](/docs/reference/using-api/deprecation-policy/#deprecating-a-feature-or-behavior) diff --git a/content/zh/docs/concepts/policy/resource-quotas.md b/content/zh/docs/concepts/policy/resource-quotas.md index 60e9dcacc4..be1cf5765d 100644 --- a/content/zh/docs/concepts/policy/resource-quotas.md +++ b/content/zh/docs/concepts/policy/resource-quotas.md @@ -140,8 +140,7 @@ The following resource types are supported: | `limits.memory` | Across all pods in a non-terminal state, the sum of memory limits cannot exceed this value. | | `requests.cpu` | Across all pods in a non-terminal state, the sum of CPU requests cannot exceed this value. | | `requests.memory` | Across all pods in a non-terminal state, the sum of memory requests cannot exceed this value. | -| `hugepages-` | Across all pods in a non-terminal state, the number of -huge page requests of the specified size cannot exceed this value. | +| `hugepages-` | Across all pods in a non-terminal state, the number of huge page requests of the specified size cannot exceed this value. | | `cpu` | Same as `requests.cpu` | | `memory` | Same as `requests.memory` | -->