I created the attached policy for my indices. After that this index appeared which is in yellow state .opendistro-job-scheduler-lock. You can see the picture too.
Also by running the below command I get this. How can I solve it without breaking it :)
curl -X GET "
https://localhost:9200/_cluster/allocation/explain?pretty" -u admin:pass -k
{
"index" : ".opendistro-job-scheduler-lock",
"shard" : 0,
"primary" : false,
"current_state" : "unassigned",
"unassigned_info" : {
"reason" : "INDEX_CREATED",
"at" : "2022-11-01T14:03:06.733Z",
"last_allocation_status" : "no_attempt"
},
"can_allocate" : "no",
"allocate_explanation" : "cannot allocate because allocation is not permitted to any of the nodes",
"node_allocation_decisions" : [
{
"node_id" : "Wgcxeaj4RM6UkojA65tufg",
"node_name" : "node-1",
"transport_address" : "
10.1.220.178:9300",
"node_attributes" : {
"shard_indexing_pressure_enabled" : "true"
},
"node_decision" : "no",
"weight_ranking" : 1,
"deciders" : [
{
"decider" : "same_shard",
"decision" : "NO",
"explanation" : "a copy of this shard is already allocated to this node [[.opendistro-job-scheduler-lock][0], node[Wgcxeaj4RM6UkojA65tufg], [P], s[STARTED], a[id=iuhhWdr3SuqjnSycdZR_Ow]]"
}
]
}
]
}