mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 21:46:22 +01:00
61 lines
1.3 KiB
Plaintext
61 lines
1.3 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * logging/cluster-logging-elasticsearch.adoc
|
|
|
|
[id="cluster-logging-configuring-node-selector_{context}"]
|
|
= Specifying a node for OpenShift Logging components using node selectors
|
|
|
|
Each component specification allows the component to target a specific node.
|
|
|
|
.Procedure
|
|
|
|
. Edit the Cluster Logging custom resource (CR) in the `openshift-logging` project:
|
|
+
|
|
----
|
|
$ oc edit ClusterLogging instance
|
|
----
|
|
+
|
|
[source,yaml]
|
|
----
|
|
$ oc edit ClusterLogging instance
|
|
|
|
apiVersion: "logging.openshift.io/v1"
|
|
kind: "ClusterLogging"
|
|
metadata:
|
|
name: "nodeselector"
|
|
spec:
|
|
managementState: "Managed"
|
|
logStore:
|
|
type: "elasticsearch"
|
|
elasticsearch:
|
|
nodeSelector: <1>
|
|
logging: es
|
|
nodeCount: 3
|
|
resources:
|
|
limits:
|
|
memory: 16Gi
|
|
requests:
|
|
cpu: 500m
|
|
memory: 16Gi
|
|
storage:
|
|
size: "20G"
|
|
storageClassName: "gp2"
|
|
redundancyPolicy: "ZeroRedundancy"
|
|
visualization:
|
|
type: "kibana"
|
|
kibana:
|
|
nodeSelector: <2>
|
|
logging: kibana
|
|
replicas: 1
|
|
collection:
|
|
logs:
|
|
type: "fluentd"
|
|
fluentd:
|
|
nodeSelector: <3>
|
|
logging: fluentd
|
|
----
|
|
|
|
<1> Node selector for Elasticsearch.
|
|
<2> Node selector for Kibana.
|
|
<3> Node selector for Fluentd.
|