Skip to content

Commit

Permalink
Merge pull request #45194 from able8/patch-8
Browse files Browse the repository at this point in the history
Update logging.md: Log rotation of kubelet
  • Loading branch information
k8s-ci-robot committed Mar 5, 2024
2 parents 5be4cc6 + 4fa4aff commit 50f39a4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions content/en/docs/concepts/cluster-administration/logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,13 @@ The usual way to access this is by running `kubectl logs`.

{{< feature-state for_k8s_version="v1.21" state="stable" >}}

You can configure the kubelet to rotate logs automatically.

If you configure rotation, the kubelet is responsible for rotating container logs and managing the
The kubelet is responsible for rotating container logs and managing the
logging directory structure.
The kubelet sends this information to the container runtime (using CRI),
and the runtime writes the container logs to the given location.

You can configure two kubelet [configuration settings](/docs/reference/config-api/kubelet-config.v1beta1/),
`containerLogMaxSize` and `containerLogMaxFiles`,
`containerLogMaxSize` (default 10Mi) and `containerLogMaxFiles` (default 5),
using the [kubelet configuration file](/docs/tasks/administer-cluster/kubelet-config-file/).
These settings let you configure the maximum size for each log file and the maximum number of
files allowed for each container respectively.
Expand Down

0 comments on commit 50f39a4

Please sign in to comment.