Skip to content

Commit 041870e

Browse files
authored
Merge pull request #28807 from chenxuc/kubelet-flag
remove deprecated kubelet flags
2 parents 45f69e5 + e284bf7 commit 041870e

File tree

1 file changed

+5
-2
lines changed
  • content/en/docs/concepts/cluster-administration

1 file changed

+5
-2
lines changed

content/en/docs/concepts/cluster-administration/logging.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,11 @@ As an example, you can find detailed information about how `kube-up.sh` sets
8383
up logging for COS image on GCP in the corresponding
8484
[`configure-helper` script](https://github.com/kubernetes/kubernetes/blob/{{< param "githubbranch" >}}/cluster/gce/gci/configure-helper.sh).
8585

86-
When using a **CRI container runtime**, the kubelet is responsible for rotating the logs and managing the logging directory structure. The kubelet
87-
sends this information to the CRI container runtime and the runtime writes the container logs to the given location. The two kubelet flags `container-log-max-size` and `container-log-max-files` can be used to configure the maximum size for each log file and the maximum number of files allowed for each container respectively.
86+
When using a **CRI container runtime**, the kubelet is responsible for rotating the logs and managing the logging directory structure.
87+
The kubelet sends this information to the CRI container runtime and the runtime writes the container logs to the given location.
88+
The two kubelet parameters [`containerLogMaxSize` and `containerLogMaxFiles`](/docs/reference/config-api/kubelet-config.v1beta1/#kubelet-config-k8s-io-v1beta1-KubeletConfiguration)
89+
in [kubelet config file](/docs/tasks/administer-cluster/kubelet-config-file/)
90+
can be used to configure the maximum size for each log file and the maximum number of files allowed for each container respectively.
8891

8992
When you run [`kubectl logs`](/docs/reference/generated/kubectl/kubectl-commands#logs) as in
9093
the basic logging example, the kubelet on the node handles the request and

0 commit comments

Comments
 (0)