Setting discovery.type as single-node doesn't change the default number of replicas for indices without a template, the default value of index.number_of_replicas will still be 1 and your cluster will be in the YELLOW state.
You will need to create or edit templates for your indices to change that behavior.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.