Update audit.md

This commit is contained in:
Qiming Teng 2023-05-17 18:51:42 +08:00 committed by GitHub
parent dab99c0146
commit 44c0ea635e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -145,10 +145,12 @@ You can configure the log audit backend using the following `kube-apiserver` fla
If your cluster's control plane runs the kube-apiserver as a Pod, remember to mount the `hostPath`
to the location of the policy file and log file, so that audit records are persisted. For example:
```shell
```yaml
--audit-policy-file=/etc/kubernetes/audit-policy.yaml
--audit-log-path=/var/log/kubernetes/audit/audit.log
```
then mount the volumes:
```yaml