Update audit.md

pull/41174/head
Vitalii Natarov 2023-05-16 12:15:10 +02:00 committed by GitHub
parent 2516bc2a59
commit dab99c0146
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ 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
--audit-policy-file=/etc/kubernetes/audit-policy.yaml \
--audit-policy-file=/etc/kubernetes/audit-policy.yaml
--audit-log-path=/var/log/kubernetes/audit/audit.log
```
then mount the volumes: