Elasticsearch集群已初始化,但curl运行尚未初始化(您可能需要运行securityadmin)

时间:2020-11-04 21:35:33

标签: elasticsearch kubernetes kubernetes-helm

设置opendistro_security.allow_default_init_securityindex: true时,我的Elasticsearch集群似乎没有初始化。当我尝试执行到Pod和“ curl https:// localhost:9200 --insecure admin:admin”时,出现错误。我尝试运行securityadmin.sh,但这不能消除错误。这是securityadmin.sh

的输出

Elasticsearch Version: 7.2.0
Open Distro Security Version: 1.2.0.0
Contacting elasticsearch cluster 'elasticsearch' and wait for YELLOW clusterstate ...
Clustername: ElasticSearch-Pre-US
Clusterstate: GREEN
Number of nodes: 8
Number of data nodes: 3
.opendistro_security index already exists, so we do not need to create one.
Populate config from /usr/share/elasticsearch/plugins/opendistro_security/securityconfig/
Will update '_doc/config' with /usr/share/elasticsearch/plugins/opendistro_security/securityconfig/config.yml 
   SUCC: Configuration for 'config' created or updated
Will update '_doc/roles' with /usr/share/elasticsearch/plugins/opendistro_security/securityconfig/roles.yml 
   SUCC: Configuration for 'roles' created or updated
Will update '_doc/rolesmapping' with /usr/share/elasticsearch/plugins/opendistro_security/securityconfig/roles_mapping.yml 
   SUCC: Configuration for 'rolesmapping' created or updated
Will update '_doc/internalusers' with /usr/share/elasticsearch/plugins/opendistro_security/securityconfig/internal_users.yml 
   SUCC: Configuration for 'internalusers' created or updated
Will update '_doc/actiongroups' with /usr/share/elasticsearch/plugins/opendistro_security/securityconfig/action_groups.yml 
   SUCC: Configuration for 'actiongroups' created or updated
Will update '_doc/tenants' with /usr/share/elasticsearch/plugins/opendistro_security/securityconfig/tenants.yml 
   SUCC: Configuration for 'tenants' created or updated
Done with success

0 个答案:

没有答案