This program for batch processing to clean up ElasticSearch indexes. curator is executed on a regular basis. It was created with the assumption that CronJob is not available in Kubernetes, and uses Deployment to perform periodic execution in the process.
go run main.go
docker build -o es-curator .
docker run -it --rm es-curator
kubectl apply -f k8s/deployment.yaml