1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-07 00:48:01 +01:00
Files
openshift-docs/modules/cluster-logging-deploy-label.adoc
2020-11-11 15:34:12 -05:00

35 lines
1009 B
Plaintext

// Module included in the following assemblies:
//
// * logging/cluster-logging-deploy.adoc
[id="cluster-logging-deploy-label_{context}"]
= Labeling nodes
At 100 nodes or more, it is recommended to first pre-pull the logging images
from the registry.
After deploying the logging pods (Elasticsearch, Kibana, and
Curator), node labeling should be done in steps of 20 nodes at a time. For
example:
Using a simple loop:
[source,terminal]
----
$ while read node; do oc label nodes $node elasticsearch-fluentd=true; done < 20_fluentd.lst
----
The following also works:
[source,terminal]
----
$ oc label nodes 10.10.0.{100..119} elasticsearch-fluentd=true
----
Labeling nodes in groups paces the daemon sets used by OpenShift logging, helping to avoid contention on shared resources such as the image registry.
[NOTE]
====
Check for the occurrence of any "CrashLoopBackOff | ImagePullFailed | Error" issues.
`oc logs <pod>`, `oc describe pod <pod>` and `oc get event` are helpful diagnostic commands.
====