mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
69 lines
1.9 KiB
Plaintext
69 lines
1.9 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * logging/cluster-logging-curator.adoc
|
|
|
|
[id="cluster-logging-curator-scripted_{context}"]
|
|
= Configuring Curator in scripted deployments
|
|
|
|
Use the information in this section if you must configure Curator in scripted deployments.
|
|
|
|
.Prerequisites
|
|
|
|
* Cluster logging and Elasticsearch must be installed.
|
|
|
|
* Set cluster logging to the unmanaged state.
|
|
|
|
.Procedure
|
|
|
|
Use the following snippets to configure Curator in your scripts:
|
|
|
|
* For scripted deployments
|
|
|
|
. Create and modify the configuration:
|
|
|
|
.. Copy the Curator configuration file and the {product-title} custom configuration file
|
|
from the Curator configuration map and create separate files for each:
|
|
+
|
|
----
|
|
$ oc extract configmap/curator --keys=curator5.yaml,config.yaml --to=/my/config
|
|
----
|
|
+
|
|
.. Edit the *_/my/config/curator5.yaml_* and *_/my/config/config.yaml_* files.
|
|
|
|
. Delete the existing Curator config map and add the edited YAML files to a new Curator config map.
|
|
+
|
|
----
|
|
$ oc delete configmap curator ; sleep 1
|
|
$ oc create configmap curator \
|
|
--from-file=curator5.yaml=/my/config/curator5.yaml \
|
|
--from-file=config.yaml=/my/config/config.yaml \
|
|
; sleep 1
|
|
----
|
|
+
|
|
The next iteration will use this configuration.
|
|
|
|
* If you are using the *action* file:
|
|
|
|
. Create and modify the configuration:
|
|
|
|
.. Copy the Curator configuration file and the *action* file
|
|
from the Curator configuration map and create separate files for each:
|
|
+
|
|
----
|
|
$ oc extract configmap/curator --keys=curator5.yaml,actions.yaml --to=/my/config
|
|
----
|
|
+
|
|
.. Edit the *_/my/config/curator5.yaml_* and *_/my/config/actions.yaml_* files.
|
|
+
|
|
. Delete the existing Curator config map and add the edited YAML files to a new Curator config map.
|
|
+
|
|
----
|
|
$ oc delete configmap curator ; sleep 1
|
|
$ oc create configmap curator \
|
|
--from-file=curator5.yaml=/my/config/curator5.yaml \
|
|
--from-file=actions.yaml=/my/config/actions.yaml \
|
|
; sleep 1
|
|
----
|
|
+
|
|
The next iteration will use this configuration.
|