I have setup on server, with MongoDb and ElasticSearch. Using https://github.com/richardwilly98/elasticsearch-river-mongodb I have connected ElasticSearch and MongoDb together.<
I am posting an answer since I tumbled upon this question while looking for solution of similar issue.
I have a dev environment where I need only 1 Elasticsearch node so there is no need for replicas for all my indices.
To solve cluster health: yellow issue, I just made index.number_of_replicas: 1
PUT /_settings
{
"index" : {
"number_of_replicas" : 0
}
}