Connect to an Elasticsearch clusteredit

This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.

Elastic Maps Server needs a connection to Elasticseach to verify the installed license. You define the connection via the elasticsearchRef attribute:

kind: ElasticMapsServer
  name: quickstart
  version: 8.14.1
  count: 1
    name: quickstart
    namespace: default

The use of namespace is optional if the Elasticsearch cluster is running in the same namespace as Elastic Maps Server.

Any Elastic Maps Server can reference (and thus access) any Elasticsearch instance as long as they are both in namespaces that are watched by the same ECK instance. ECK will copy the required Secret from Elasticsearch to the Elastic Maps Server namespace. Elastic Maps Server cannot automatically connect to Elasticsearch (through elasticsearchRef) in a namespace managed by a different ECK instance. For more information, see Restrict cross-namespace resource associations.

The Elastic Maps Server configuration file is automatically setup by ECK to establish a secure connection to Elasticsearch.