I am facing the below issue after the installation of search guard plugin in elastic search on Kubernetes
[2018-01-22T13:32:58,969][INFO ][o.e.n.Node ] [elasticsearch] started
[2018-01-22T13:32:59,004][INFO ][c.f.s.c.IndexBaseConfigurationRepository] searchguard index does not exist yet, so we create a default config
[2018-01-22T13:32:59,009][INFO ][c.f.s.c.IndexBaseConfigurationRepository] Will create searchguard index so we can apply default config
[2018-01-22T13:32:59,011][INFO ][o.e.g.GatewayService ] [elasticsearch] recovered [0] indices into cluster_state
[2018-01-22T13:32:59,125][INFO ][o.e.c.m.MetaDataCreateIndexService] [elasticsearch] [searchguard] creating index, cause [api], templates [], shards [1]/[1], mappings []
[2018-01-22T13:33:29,169][INFO ][c.f.s.s.ConfigHelper ] Will update 'config' with /usr/share/elasticsearch/plugins/search-guard-6/sgconfig/sg_config.yml
[2018-01-22T13:34:29,305][ERROR][c.f.s.c.ConfigurationLoader] Failure No shard available for [org.elasticsearch.action.get.MultiGetShardRequest@9e900a] retrieving configuration for [config, roles, rolesmapping, internalusers, actiongroups] (index=searchguard)
cluster:
name: dst
node:
master: true
data: true
name: elasticsearch
ingest: true
network.host: 0.0.0.0
path:
data: /data/data
logs: /data/log
discovery:
zen:
# ping.unicast.hosts: elasticsearch-discovery
minimum_master_nodes: 3
cluster.routing.allocation.disk.threshold_enabled: false
######## Start Search Guard Demo Configuration ########
# WARNING: revise all the lines below before you go into production
searchguard.ssl.transport.pemcert_filepath: client.pem
searchguard.ssl.transport.pemkey_filepath: client-key.pem
searchguard.ssl.transport.pemtrustedcas_filepath: root-ca.pem
searchguard.ssl.transport.enforce_hostname_verification: false
#searchguard.ssl.http.enabled: true
#searchguard.ssl.http.pemcert_filepath: esnode.pem
#searchguard.ssl.http.pemkey_filepath: esnode-key.pem
#searchguard.ssl.http.pemtrustedcas_filepath: root-ca.pem
searchguard.allow_unsafe_democertificates: true
searchguard.allow_default_init_sgindex: true
searchguard.authcz.admin_dn:
- CN=kirk,OU=IT,O=IBM,L=Dallas,ST=TX,C=US
searchguard.audit.type: internal_elasticsearch
searchguard.enable_snapshot_restore_privilege: true
searchguard.check_snapshot_restore_write_privileges: true
searchguard.restapi.roles_enabled: ["sg_all_access"]
searchguard.enterprise_modules_enabled: false
node.max_local_storage_nodes: 3
######## End Search Guard Demo Configuration ########