terascope / teraslice

Scalable data processing pipelines in JavaScript
https://terascope.github.io/teraslice/
Apache License 2.0
50 stars 13 forks source link

k8s - Add option to reset ES Store to k8s-env command when rebuilding teraslice #3483

Closed busma13 closed 9 months ago

busma13 commented 11 months ago

The tscripts k8s-env --rebuild command will build a new Teraslice docker image and restart Teraslice within the Kubernetes cluster. It does not clear the elasticsearch indices. This is useful because there is no need to reload assets or register jobs after a rebuild.

There are times where it is necessary to clear the elasticsearch indices and currently that requires you to delete the kind cluster and rerun ts-scripts k8s-env.

Adding a new option, such as clear-es that could be used along with the rebuild option, would be helpful.

godber commented 9 months ago

This should be closed in the associated PR: https://github.com/terascope/teraslice/pull/3532