Skip to content

Commit 3d6b811

Browse files
authored
Merge pull request #25127 from tengqm/zh-sync-audit
[zh] sync tasks/debug-application-cluster/audit.md
2 parents 412a301 + 2dac08f commit 3d6b811

File tree

1 file changed

+14
-13
lines changed
  • content/zh/docs/tasks/debug-application-cluster

1 file changed

+14
-13
lines changed

content/zh/docs/tasks/debug-application-cluster/audit.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,19 @@ Kubernetes 审计功能提供了与安全相关的按时间顺序排列的记录
4444
<!-- body -->
4545

4646
<!--
47-
[Kube-apiserver](/docs/reference/command-line-tools-reference/kube-apiserver/)
48-
performs auditing. Each request on each stage
49-
of its execution generates an event, which is then pre-processed according to
47+
Audit records begin their lifecycle inside the
48+
[kube-apiserver](/docs/reference/command-line-tools-reference/kube-apiserver/)
49+
component. Each request on each stage
50+
of its execution generates an audit event, which is then pre-processed according to
5051
a certain policy and written to a backend. The policy determines what's recorded
5152
and the backends persist the records. The current backend implementations
5253
include logs files and webhooks.
5354
-->
55+
审计记录最初产生于
5456
[kube-apiserver](/zh/docs/reference/command-line-tools-reference/kube-apiserver/)
55-
执行审计。每个执行阶段的每个请求都会生成一个事件,然后根据特定策略对事件进行预处理并写入后端。
56-
该策略确定要记录的内容和用来存储记录的后端。当前的后端支持日志文件和 webhook。
57+
内部。每个请求在不同执行阶段都会生成审计事件;这些审计事件会根据特定策略
58+
被预处理并写入后端。策略确定要记录的内容和用来存储记录的后端。
59+
当前的后端支持日志文件和 webhook。
5760

5861
<!--
5962
Each request can be recorded with an associated "stage". The known stages are:
@@ -162,7 +165,7 @@ script, which generates the audit policy file. You can see most of the audit pol
162165
## Audit backends
163166
164167
Audit backends persist audit events to an external storage.
165-
[Kube-apiserver][kube-apiserver] out of the box provides two backends:
168+
Out of the box, the kube-apiserver provides two backends:
166169
167170
- Log backend, which writes events to a disk
168171
- Webhook backend, which sends events to an external API
@@ -173,7 +176,7 @@ In both cases, audit events structure is defined by the API in the
173176
-->
174177
## 审计后端 {#audit-backends}
175178

176-
审计后端实现将审计事件导出到外部存储。 `Kube-apiserver` 提供两个后端
179+
审计后端实现将审计事件导出到外部存储。`Kube-apiserver` 默认提供两个后端
177180

178181
- Log 后端,将事件写入到磁盘
179182
- Webhook 后端,将事件发送到外部 API
@@ -407,7 +410,7 @@ audit policies.
407410
408411
### Use fluentd to collect and distribute audit events from log file
409412
410-
[Fluentd](http://www.fluentd.org/) is an open source data collector for unified logging layer.
413+
[Fluentd](https://www.fluentd.org/) is an open source data collector for unified logging layer.
411414
In this example, we will use fluentd to split audit events by different namespaces.
412415
-->
413416
## 日志收集器示例
@@ -570,10 +573,10 @@ different users into different files.
570573
```
571574

572575
<!--
573-
1. create a [kubeconfig file](/docs/tasks/access-application-cluster/authenticate-across-clusters-kubeconfig/) for kube-apiserver webhook audit backend
576+
1. create a [kubeconfig file](/docs/tasks/access-application-cluster/configure-access-multiple-clusters/) for kube-apiserver webhook audit backend
574577
-->
575578
4. 为 kube-apiserver webhook 审计后端创建一个
576-
[kubeconfig 文件](/zh/docs/concepts/configuration/organize-cluster-access-kubeconfig/)
579+
[kubeconfig 文件](/zh/docs/tasks/access-application-cluster/configure-access-multiple-clusters/)
577580

578581
```bash
579582
cat <<EOF > /etc/kubernetes/audit-webhook-kubeconfig
@@ -618,10 +621,8 @@ plugin which supports full-text search and analytics.
618621
## {{% heading "whatsnext" %}}
619622
620623
<!--
621-
Visit [Auditing with Falco](/docs/tasks/debug-application-cluster/falco).
622-
623624
Learn about [Mutating webhook auditing annotations](/docs/reference/access-authn-authz/extensible-admission-controllers/#mutating-webhook-auditing-annotations).
624625
-->
625626
626-
* 了解 [Mutating webhook 审计注解](/zh/docs/reference/access-authn-authz/extensible-admission-controllers/#mutating-webhook-auditing-annotations)
627+
了解 [Mutating webhook 审计注解](/zh/docs/reference/access-authn-authz/extensible-admission-controllers/#mutating-webhook-auditing-annotations)
627628

0 commit comments

Comments
 (0)