From d6f37c7e25ea37b25ccbad46d83682a779d38bc6 Mon Sep 17 00:00:00 2001 From: ydFu Date: Tue, 26 Jan 2021 16:46:11 +0800 Subject: [PATCH] * [zh] Umbrella issue: pages out of sync in concepts section(#26177 System Logs) ` [x] content/zh/docs/concepts/cluster-administration/system-logs.md ` Signed-off-by: ydFu --- .../cluster-administration/system-logs.md | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/content/zh/docs/concepts/cluster-administration/system-logs.md b/content/zh/docs/concepts/cluster-administration/system-logs.md index 14e455641bc49..1a5e08bf7bbb5 100644 --- a/content/zh/docs/concepts/cluster-administration/system-logs.md +++ b/content/zh/docs/concepts/cluster-administration/system-logs.md @@ -153,6 +153,54 @@ List of components currently supporting JSON format: * {{< glossary_tooltip term_id="kube-scheduler" text="kube-scheduler" >}} * {{< glossary_tooltip term_id="kubelet" text="kubelet" >}} + + +### 日志清理 + +{{< feature-state for_k8s_version="v1.20" state="alpha" >}} + +{{}} +日志清理可能会导致大量的计算开销,因此不应启用在生产环境中。 +{{< /warning >}} + + + +`--experimental-logging-sanitization` 参数启用了 klog 清理过滤器。 +如果启用后,将检查所有日志参数中是否有标记为敏感数据的字段(比如:密码,密钥,令牌),并且将阻止这些字段的记录。 + + + +当前支持日志清理的组件列表: +* kube-controller-manager +* kube-apiserver +* kube-scheduler +* kubelet + +{{< note >}} +日志清理过滤器不会阻止用户工作负载日志泄漏敏感数据。 +{{< /note >}} +