Fix auditing example

Signed-off-by: David Young <davidy@funkypenguin.co.nz>
This commit is contained in:
David Young 2021-12-02 14:36:53 +13:00
parent 6058c6f8c6
commit 4f96e391b4
No known key found for this signature in database
GPG Key ID: 525EF417604A0541
1 changed files with 4 additions and 4 deletions

View File

@ -147,7 +147,7 @@ If your cluster's control plane runs the kube-apiserver as a Pod, remember to mo
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-log-path=/var/log/audit.log
--audit-log-path=/var/log/kubernetes/audit/audit.log
```
then mount the volumes:
@ -157,7 +157,7 @@ volumeMounts:
- mountPath: /etc/kubernetes/audit-policy.yaml
name: audit
readOnly: true
- mountPath: /var/log/audit.log
- mountPath: /var/log/kubernetes/audit/
name: audit-log
readOnly: false
```
@ -172,8 +172,8 @@ and finally configure the `hostPath`:
- name: audit-log
hostPath:
path: /var/log/audit.log
type: FileOrCreate
path: /var/log/kubernetes/audit/
type: DirectoryOrCreate
```