From 4f96e391b4e921b6515e6c5adfe71ff379ad4e5c Mon Sep 17 00:00:00 2001 From: David Young Date: Thu, 2 Dec 2021 14:36:53 +1300 Subject: [PATCH 1/2] Fix auditing example Signed-off-by: David Young --- content/en/docs/tasks/debug-application-cluster/audit.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/en/docs/tasks/debug-application-cluster/audit.md b/content/en/docs/tasks/debug-application-cluster/audit.md index 6c4b433ca2..79e9b92216 100644 --- a/content/en/docs/tasks/debug-application-cluster/audit.md +++ b/content/en/docs/tasks/debug-application-cluster/audit.md @@ -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 ``` From c2b5d6041f4913c0b938244aff9b95963afeb59b Mon Sep 17 00:00:00 2001 From: Waynerv Date: Mon, 6 Dec 2021 18:51:21 +0800 Subject: [PATCH 2/2] fix typo --- .../reference/setup-tools/kubeadm/implementation-details.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/docs/reference/setup-tools/kubeadm/implementation-details.md b/content/en/docs/reference/setup-tools/kubeadm/implementation-details.md index 6222685845..137a9bcd04 100644 --- a/content/en/docs/reference/setup-tools/kubeadm/implementation-details.md +++ b/content/en/docs/reference/setup-tools/kubeadm/implementation-details.md @@ -259,7 +259,7 @@ Other API server flags that are set unconditionally are: #### Controller manager -The static Pod manifest for the API server is affected by following parameters provided by the users: +The static Pod manifest for the controller manager is affected by following parameters provided by the users: - If kubeadm is invoked specifying a `--pod-network-cidr`, the subnet manager feature required for some CNI network plugins is enabled by setting: