Skip to content

Commit e5d9e6d

Browse files
authored
Merge pull request #41174 from SebastianUA/patch-1
Update audit.md
2 parents e2444ce + 6a20c5d commit e5d9e6d

File tree

1 file changed

+5
-3
lines changed
  • content/en/docs/tasks/debug/debug-cluster

1 file changed

+5
-3
lines changed

content/en/docs/tasks/debug/debug-cluster/audit.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,12 @@ You can configure the log audit backend using the following `kube-apiserver` fla
144144

145145
If your cluster's control plane runs the kube-apiserver as a Pod, remember to mount the `hostPath`
146146
to the location of the policy file and log file, so that audit records are persisted. For example:
147-
```shell
148-
--audit-policy-file=/etc/kubernetes/audit-policy.yaml \
149-
--audit-log-path=/var/log/kubernetes/audit/audit.log
147+
148+
```yaml
149+
- --audit-policy-file=/etc/kubernetes/audit-policy.yaml
150+
- --audit-log-path=/var/log/kubernetes/audit/audit.log
150151
```
152+
151153
then mount the volumes:
152154

153155
```yaml

0 commit comments

Comments
 (0)