File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
content/en/docs/tasks/debug-application-cluster Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ If your cluster's control plane runs the kube-apiserver as a Pod, remember to mo
147
147
to the location of the policy file and log file, so that audit records are persisted. For example :
148
148
` ` ` shell
149
149
--audit-policy-file=/etc/kubernetes/audit-policy.yaml \
150
- --audit-log-path=/var/log/audit.log
150
+ --audit-log-path=/var/log/kubernetes/audit/ audit.log
151
151
` ` `
152
152
then mount the volumes :
153
153
@@ -157,7 +157,7 @@ volumeMounts:
157
157
- mountPath: /etc/kubernetes/audit-policy.yaml
158
158
name: audit
159
159
readOnly: true
160
- - mountPath: /var/log/audit.log
160
+ - mountPath: /var/log/kubernetes/ audit/
161
161
name: audit-log
162
162
readOnly: false
163
163
` ` `
@@ -172,8 +172,8 @@ and finally configure the `hostPath`:
172
172
173
173
- name: audit-log
174
174
hostPath:
175
- path: /var/log/audit.log
176
- type: FileOrCreate
175
+ path: /var/log/kubernetes/ audit/
176
+ type: DirectoryOrCreate
177
177
178
178
` ` `
179
179
You can’t perform that action at this time.
0 commit comments