Opensearch
Create a Secret for securing OpenSearch credentials.
Prerequisites
To create a Secret for securing OpenSearch credentials, you need the following information.
See Secret: Access control for who can create a Secret and how access to it is managed.
Source system requirements
Username: The OpenSearch username used to authenticate access to the OpenSearch instance. This is a user-specific or role-based identifier.
Password: The OpenSearch password for the username. Retrieve it from your OpenSearch configuration or admin settings, based on how your organization manages instance credentials.
Create a secret for securing OpenSearch credentials
OpenSearch is a distributed search and analytics engine for large volumes of structured and unstructured data. It is commonly used for log analytics, full-text search, and real-time monitoring.
To create an OpenSearch Secret in DataOS, you need access to the DataOS Command Line Interface (CLI) and the required permissions.
Step 1: Create a manifest file
Create a manifest file with the configuration details for your OpenSearch Secret.
name: ${{opensearch-secret-name}}
version: v2alpha
type: secret
tags:
- ${{tag-1}}
- ${{tag-2}}
description: "Credentials for opensearch depot"
layer: user
secret:
type: key-value
data:
username: ${{opensearch-username}}
password: ${{opensearch-password}}For more information about each attribute, refer to the configurations section.
Step 2: Apply the manifest
Use the apply command to create the OpenSearch Secret in DataOS.
Example Usage:
Step 3: Validate the Secret
Use the get command to verify the OpenSearch Secret in DataOS.
Expected Output:
To list all Secrets in the DataOS environment, run the following command.
Expected Output:
Delete the Secret
To delete the OpenSearch Secret, use one of the following commands:
Specify the Resource type and Secret name in the delete command.
Example Usage:
Last updated
Was this helpful?