Skip to content

Commit 60dc217

Browse files
committed
Apply some line wrapping cleanup
1 parent 1e3b4d3 commit 60dc217

File tree

2 files changed

+18
-12
lines changed

2 files changed

+18
-12
lines changed

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

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,12 @@ You can use `kubectl logs --previous` to retrieve logs from a previous instantia
7171
If your pod has multiple containers, specify which container's logs you want to access by
7272
appending a container name to the command, with a `-c` flag, like so:
7373

74-
```console
74+
```shell
7575
kubectl logs counter -c count
7676
```
7777

78-
See the [`kubectl logs` documentation](/docs/reference/generated/kubectl/kubectl-commands#logs) for more details.
78+
See the [`kubectl logs` documentation](/docs/reference/generated/kubectl/kubectl-commands#logs)
79+
for more details.
7980

8081
### How nodes handle container logs
8182

@@ -98,23 +99,23 @@ The usual way to access this is by running `kubectl logs`.
9899

99100
You can configure the kubelet to rotate logs automatically.
100101

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

105107
You can configure two kubelet [configuration settings](/docs/reference/config-api/kubelet-config.v1beta1/),
106108
`containerLogMaxSize` and `containerLogMaxFiles`,
107109
using the [kubelet configuration file](/docs/tasks/administer-cluster/kubelet-config-file/).
108-
These settings let you configure the maximum size for each log file and the maximum number of files allowed for each container respectively.
110+
These settings let you configure the maximum size for each log file and the maximum number of
111+
files allowed for each container respectively.
109112

110113
When you run [`kubectl logs`](/docs/reference/generated/kubectl/kubectl-commands#logs) as in
111114
the basic logging example, the kubelet on the node handles the request and
112115
reads directly from the log file. The kubelet returns the content of the log file.
113116

114-
115117
{{< note >}}
116-
Only the contents of the latest log file are available through
117-
`kubectl logs`.
118+
Only the contents of the latest log file are available through `kubectl logs`.
118119

119120
For example, if a Pod writes 40 MiB of logs and the kubelet rotates logs
120121
after 10 MiB, running `kubectl logs` returns at most 10MiB of data.
@@ -220,7 +221,8 @@ application containers on that node.
220221
Because the logging agent must run on every node, it is recommended to run the agent
221222
as a `DaemonSet`.
222223

223-
Node-level logging creates only one agent per node and doesn't require any changes to the applications running on the node.
224+
Node-level logging creates only one agent per node and doesn't require any changes to the
225+
applications running on the node.
224226

225227
Containers write to stdout and stderr, but with no agreed format. A node-level agent collects
226228
these logs and forwards them for aggregation.
@@ -230,7 +232,8 @@ these logs and forwards them for aggregation.
230232
You can use a sidecar container in one of the following ways:
231233

232234
* The sidecar container streams application logs to its own `stdout`.
233-
* The sidecar container runs a logging agent, which is configured to pick up logs from an application container.
235+
* The sidecar container runs a logging agent, which is configured to pick up logs
236+
from an application container.
234237

235238
#### Streaming sidecar container
236239

@@ -345,10 +348,13 @@ The pod mounts a volume where fluentd can pick up its configuration data.
345348

346349
![Exposing logs directly from the application](/images/docs/user-guide/logging/logging-from-application.png)
347350

348-
Cluster-logging that exposes or pushes logs directly from every application is outside the scope of Kubernetes.
351+
Cluster-logging that exposes or pushes logs directly from every application is outside the scope
352+
of Kubernetes.
349353

350354
## {{% heading "whatsnext" %}}
351355

352356
* Read about [Kubernetes system logs](/docs/concepts/cluster-administration/system-logs/)
353357
* Learn about [Traces For Kubernetes System Components](/docs/concepts/cluster-administration/system-traces/)
354-
* Learn how to [customise the termination message](/docs/tasks/debug/debug-application/determine-reason-pod-failure/#customizing-the-termination-message) that Kubernetes records when a Pod fails
358+
* Learn how to [customise the termination message](/docs/tasks/debug/debug-application/determine-reason-pod-failure/#customizing-the-termination-message)
359+
that Kubernetes records when a Pod fails
360+

content/en/docs/concepts/cluster-administration/system-logs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ generates log messages for the Kubernetes system components.
2525
Kubernetes is in the process of simplifying logging in its components.
2626
The following klog command line flags
2727
[are deprecated](https://github.com/kubernetes/enhancements/tree/master/keps/sig-instrumentation/2845-deprecate-klog-specific-flags-in-k8s-components)
28-
starting with Kubernetes 1.23 and removed in 1.26:
28+
starting with Kubernetes v1.23 and removed in Kubernetes v1.26:
2929

3030
- `--add-dir-header`
3131
- `--alsologtostderr`

0 commit comments

Comments
 (0)