You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-9Lines changed: 17 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -233,24 +233,32 @@ You should see something similar to the following:
233
233
234
234
## Clean up with Curator
235
235
236
-
Additionally, you can run a Scheduled Job running [Curator](https://github.com/elastic/curator) to clean up your indices (or do other actions on your ES).
237
-
238
-
For this you need to deploy a Config Map (which configures the Curator) and the Scheduled Job:
236
+
Additionally, you can run a [CronJob](http://kubernetes.io/docs/user-guide/cron-jobs/) that will periodically run [Curator](https://github.com/elastic/curator) to clean up your indices (or do other actions on your cluster).
239
237
240
238
```
241
-
kubectl create -f es-curator-configmap.yaml
239
+
kubectl create -f es-curator-config.yaml
242
240
kubectl create -f es-curator.yaml
243
241
```
244
242
245
-
The pod is set to run once a day at 1 minute past midnight and delete indices that are older than 3 days.
243
+
Please, confirm the job has been created.
244
+
245
+
```
246
+
$ kubectl get cronjobs
247
+
NAME SCHEDULE SUSPEND ACTIVE LAST-SCHEDULE
248
+
curator 1 0 * * * False 0 <none>
249
+
```
250
+
251
+
The job is configured to run once a day at _1 minute past midnight and delete indices that are older than 3 days_.
246
252
247
-
You can change the schedule by editing the Cron notation in the `es-curator.yaml`.
253
+
**Notes**
248
254
249
-
You can change the action (e.g. delete older than 3 days) by editing the `es-curator-configmap.yaml`. The definition of the `action_file.yaml` is quite self-explaining for simple set ups. For more advanced configuration options, please consult the [Curator Documentation](https://www.elastic.co/guide/en/elasticsearch/client/curator/current/index.html).
255
+
- You can change the schedule by editing the cron notation in `es-curator.yaml`.
256
+
- You can change the action (e.g. delete older than 3 days) by editing the `es-curator-config.yaml`.
257
+
- The definition of the `action_file.yaml` is quite self-explaining for simple set-ups. For more advanced configuration options, please consult the [Curator Documentation](https://www.elastic.co/guide/en/elasticsearch/client/curator/current/index.html).
0 commit comments