Get events for Elasticsearch cluster health degraded , but cluster is green

the es version is 6.8.8


$ k get events -n sls-prod
LAST SEEN   TYPE      REASON      OBJECT                  MESSAGE
44m         Warning   Unhealthy   elasticsearch/elastic   Elasticsearch cluster health degraded

but i exec in the pod . to see the cluster health , it returns green.

curl -u elastic:xxxx  http://127.0.0.1:9200/_cluster/health
{"cluster_name":"elastic","status":"green","timed_out":false,"number_of_nodes":3,"number_of_data_nodes":3,"active_primary_shards":810,"active_shards":1620,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":0,"delayed_unassigned_shards":0,"number_of_pending_tasks":0,"number_of_in_flight_fetch":0,"task_max_waiting_in_queue_millis":0,"active_shards_percent_as_number":100.0}

$ k  get elasticsearches.elasticsearch.k8s.elastic.co -n sls-prod 
NAME      HEALTH   NODES   VERSION   PHASE   AGE
elastic   green    3       6.8.8     Ready   254d

why this happend ?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.