Fix auditing example
Signed-off-by: David Young <davidy@funkypenguin.co.nz>
This commit is contained in:
@@ -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:
|
to the location of the policy file and log file, so that audit records are persisted. For example:
|
||||||
```shell
|
```shell
|
||||||
--audit-policy-file=/etc/kubernetes/audit-policy.yaml \
|
--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:
|
then mount the volumes:
|
||||||
|
|
||||||
@@ -157,7 +157,7 @@ volumeMounts:
|
|||||||
- mountPath: /etc/kubernetes/audit-policy.yaml
|
- mountPath: /etc/kubernetes/audit-policy.yaml
|
||||||
name: audit
|
name: audit
|
||||||
readOnly: true
|
readOnly: true
|
||||||
- mountPath: /var/log/audit.log
|
- mountPath: /var/log/kubernetes/audit/
|
||||||
name: audit-log
|
name: audit-log
|
||||||
readOnly: false
|
readOnly: false
|
||||||
```
|
```
|
||||||
@@ -172,8 +172,8 @@ and finally configure the `hostPath`:
|
|||||||
|
|
||||||
- name: audit-log
|
- name: audit-log
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /var/log/audit.log
|
path: /var/log/kubernetes/audit/
|
||||||
type: FileOrCreate
|
type: DirectoryOrCreate
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user