You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/zh/docs/concepts/cluster-administration/addons.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,8 +25,8 @@ Add-ons 扩展了 Kubernetes 的功能。
25
25
<!--
26
26
## Networking and Network Policy
27
27
28
-
29
28
* [ACI](https://www.github.com/noironetworks/aci-containers) provides integrated container networking and network security with Cisco ACI.
29
+
* [Antrea](https://antrea.io/) operates at Layer 3/4 to provide networking and security services for Kubernetes, leveraging Open vSwitch as the networking data plane.
30
30
* [Calico](https://docs.projectcalico.org/latest/getting-started/kubernetes/) is a secure L3 networking and network policy provider.
31
31
* [Canal](https://github.com/tigera/canal/tree/master/k8s-install) unites Flannel and Calico, providing networking and network policy.
32
32
* [Cilium](https://github.com/cilium/cilium) is a L3 network and network policy plugin that can enforce HTTP/API/L7 policies transparently. Both routing and overlay/encapsulation mode are supported.
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.
163
+
-->
164
+
当使用某 *CRI 容器运行时* 时,kubelet 要负责对日志进行轮换,并
165
+
管理日志目录的结构。kubelet 将此信息发送给 CRI 容器运行时,后者
166
+
将容器日志写入到指定的位置。kubelet 标志 `container-log-max-size`
167
+
和 `container-log-max-files` 可以用来配置每个日志文件的最大长度
168
+
和每个容器可以生成的日志文件个数上限。
169
+
160
170
<!--
161
171
When you run [`kubectl logs`](/docs/reference/generated/kubectl/kubectl-commands#logs) as in
162
172
the basic logging example, the kubelet on the node handles the request and
@@ -166,14 +176,15 @@ reads directly from the log file. The kubelet returns the content of the log fil
166
176
节点上的 kubelet 处理该请求并直接读取日志文件,同时在响应中返回日志文件内容。
167
177
168
178
<!--
169
-
If an external system has performed the rotation,
179
+
If an external system has performed the rotation or a CRI container runtime is used,
170
180
only the contents of the latest log file will be available through
171
181
`kubectl logs`. For example, if there's a 10MB file, `logrotate` performs
172
182
the rotation and there are two files: one file that is 10MB in size and a second file that is empty.
173
183
`kubectl logs` returns the latest log file which in this example is an empty response.
The scheduler exposes optional metrics that reports the requested resources and the desired limits of all running pods. These metrics can be used to build capacity planning dashboards, assess current or historical scheduling limits, quickly identify workloads that cannot schedule due to lack of resources, and compare actual usage to the pod's request.
The scheduler exposes optional metrics that reports the requested resources and the desired limits of all running pods. These metrics can be used to build capacity planning dashboards, assess current or historical scheduling limits, quickly identify workloads that cannot schedule due to lack of resources, and compare actual usage to the pod's request.
257
+
-->
259
258
调度器会暴露一些可选的指标,报告所有运行中 Pods 所请求的资源和期望的约束值。
260
259
这些指标可用来构造容量规划监控面板、访问调度约束的当前或历史数据、
261
260
快速发现因为缺少资源而无法被调度的负载,或者将 Pod 的实际资源用量
@@ -287,7 +286,7 @@ kube-scheduler 组件能够辩识各个 Pod 所配置的资源
287
286
Once a pod reaches completion (has a `restartPolicy` of `Never` or `OnFailure` and is in the `Succeeded` or `Failed` pod phase, or has been deleted and all containers have a terminated state) the series is no longer reported since the scheduler is now free to schedule other pods to run. The two metrics are called `kube_pod_resource_request` and `kube_pod_resource_limit`.
288
287
289
288
The metrics are exposed at the HTTP endpoint `/metrics/resources` and require the same authorization as the `/metrics`
290
-
endpoint on the scheduler. You must use the `--show-hidden-metrics-for-version=1.20` flag to expose these alpha stability metrics.
289
+
endpoint on the scheduler. You must use the `-show-hidden-metrics-for-version=1.20` flag to expose these alpha stability metrics.
291
290
-->
292
291
一旦 Pod 进入完成状态(其 `restartPolicy` 为 `Never` 或 `OnFailure`,且
293
292
其处于 `Succeeded` 或 `Failed` Pod 阶段,或者已经被删除且所有容器都具有
@@ -299,6 +298,42 @@ endpoint on the scheduler. You must use the `--show-hidden-metrics-for-version=1
You can explicitly turn off metrics via command line flag `--disabled-metrics`. This may be desired if, for example, a metric is causing a performance problem. The input is a list of disabled metrics (i.e. `--disabled-metrics=metric1,metric2`).
Metrics with unbounded dimensions could cause memory issues in the components they instrument. To limit resource use, you can use the `--allow-label-value` command line option to dynamically configure an allow-list of label values for a metric.
0 commit comments