Fail to setup metricbeat for kubernetes

hi everyone!!
I deploy metricbeat in my cluster kubernetes via yaml file in this document
https://www.elastic.co/guide/en/beats/metricbeat/current/running-on-kubernetes.html
metricbeat can connect to open distro elasticsearch but can not create index
I check the log in rancher and see that
Failed to connect to backoff(elasticsearch(http://10.56.239.53:9200)): Connection marked as failed because the onConnect callback failed: request checking for ILM availability failed: 500 Internal Server Error: {“error”:{“root_cause”:[{“type”:“security_exception”,“reason”:“Unexpected exception indices:admin/get”}]
Please help me this solution ! thanks so much