Connect to an Elasticsearch cluster
editConnect to an Elasticsearch cluster
editThis 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:
apiVersion: maps.k8s.elastic.co/v1alpha1 kind: ElasticMapsServer metadata: name: quickstart spec: version: 8.17.0 count: 1 elasticsearchRef: 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.