Elastic search cluster health is always red

thanks for the link. Issue is resolved after changing the below properties

gateway:
recover_after_data_nodes: 1
recover_after_time: 15m
expected_data_nodes: 1