mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-06 06:46:26 +01:00
66 lines
1.4 KiB
Plaintext
66 lines
1.4 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * logging/cluster-logging-elasticsearch.adoc
|
|
|
|
[id="cluster-logging-configuring-node-selector_{context}"]
|
|
= Specifying a node for cluster 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:
|
|
|
|
[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
|
|
curation:
|
|
type: "curator"
|
|
curator:
|
|
nodeSelector: <3>
|
|
logging: curator
|
|
schedule: "*/10 * * * *"
|
|
collection:
|
|
logs:
|
|
type: "fluentd"
|
|
fluentd:
|
|
nodeSelector: <4>
|
|
logging: fluentd
|
|
----
|
|
|
|
<1> Node selector for Elasticsearch.
|
|
<2> Node selector for Kibana.
|
|
<3> Node selector for Curator.
|
|
<4> Node selector for Fluentd.
|
|
|
|
|