Elasticsearch¶
DataOS provides the capability to connect to Elasticsearch data using Depot. The Depot facilitates access to all documents that are visible to the specified user, allowing for text queries and analytics.
Requirements¶
To establish a connection with Elasticsearch, the following information is required:
- Username
- Password
- Nodes (Hostname/URL of the server and ports)
Template¶
To create a Depot of type ‘ELASTICSEARCH‘, utilize the following template:
name: {{depot-name}}
version: v1
type: depot
tags:
- {{tag1}}
- {{tag2}}
owner: {{owner-name}}
layer: user
depot:
type: ELASTICSEARCH
description: {{description}}
external: {{true}}
connectionSecret:
- acl: rw
values:
username: {{username}}
password: {{password}}
- acl: r
values:
username: {{username}}
password: {{password}}
spec:
nodes: {{["localhost:9092", "localhost:9093"]}}
name: {{depot-name}}
version: v2alpha
type: depot
tags:
- {{tag1}}
- {{tag2}}
owner: {{owner-name}}
layer: user
depot:
type: ELASTICSEARCH
description: {{description}}
external: {{true}}
connectionSecret:
- acl: rw
values:
username: {{username}}
password: {{password}}
- acl: r
values:
username: {{username}}
password: {{password}}
elasticsearch:
nodes: {{["localhost:9092", "localhost:9093"]}}