1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00

OCPBUGS-29275 for a fourth try

This commit is contained in:
Jessi Manthei
2025-05-02 14:36:34 -05:00
committed by openshift-cherrypick-robot
parent 58a77649cb
commit 5b17c1bbeb
2 changed files with 27 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
// Module included in the following assemblies:
// * networking/dns-operator.adoc
:_mod-docs-content-type: PROCEDURE
[id="nw-dns-viewlog_{context}"]
= Viewing the CoreDNS logs
You can view CoreDNS logs by using the `oc logs` command.
.Procedure
* View the logs of a specific CoreDNS pod by entering the following command:
+
[source,terminal]
----
$ oc -n openshift-dns logs -c dns <core_dns_pod_name>
----
* Follow the logs of all CoreDNS pods by entering the following command:
+
[source,terminal]
----
$ oc -n openshift-dns logs -c dns -l dns.operator.openshift.io/daemonset-dns=default -f --max-log-requests=<number> <1>
----
<1> Specifies the number of DNS pods to stream logs from. The maximum is 6.

View File

@@ -23,6 +23,8 @@ include::modules/nw-dns-operator-logs.adoc[leveloffset=+1]
include::modules/nw-dns-loglevel.adoc[leveloffset=+1]
include::modules/nw-dns-viewlog.adoc[leveloffset=+1]
include::modules/nw-dns-operatorloglevel.adoc[leveloffset=+1]
include::modules/nw-dns-cache-tuning.adoc[leveloffset=+1]