Helm
The Helm chart contains the resources described in the following table.
The specification in the default Helm chart supports many standard use cases and setups. You can modify the default chart to configure your desired specifications and set Transport Layer Security (TLS) and role-based access control (RBAC).
For information about the default configuration, steps to configure security, and configurable parameters, see the .
The instructions here assume you have a Kubernetes cluster with Helm preinstalled. See the Kubernetes documentation for steps to configure a Kubernetes cluster and the to install Helm.
The default Helm chart deploys a three-node cluster. We recommend that you have at least 8 GiB of memory available for this deployment. You can expect the deployment to fail if, say, you have less than 4 GiB of memory available.
Add
opensearch
helm-charts repository to Helm:copy
Update the available charts locally from charts repositories:
helm repo update
copy
-
helm search repo opensearch
copy
NAME CHART VERSION APP VERSION DESCRIPTION
opensearch/opensearch 1.0.7 1.0.0 A Helm chart for OpenSearch
opensearch/opensearch-dashboards 1.0.4 1.0.0 A Helm chart for OpenSearch Dashboards
Deploy OpenSearch:
helm install my-deployment opensearch/opensearch
copy
You can also build the opensearch-1.0.0.tgz
file manually:
Change to the
opensearch
directory:copy
Package the Helm chart:
copy
Deploy OpenSearch:
helm install --generate-name opensearch-1.0.0.tgz
The output shows you the specifications instantiated from the install. To customize the deployment, pass in the values that you want to override with a custom YAML file:
helm install --values=customvalues.yaml opensearch-1.0.0.tgz
copy
Sample output
LAST DEPLOYED: Tue Aug 17 17:59:07 2021
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
Watch all cluster members come up.
$ kubectl get pods --namespace=default -l app=opensearch-cluster-master -w
To make sure your OpenSearch pod is up and running, run the following command:
To access the OpenSearch shell:
$ kubectl exec -it opensearch-cluster-master-0 -- /bin/bash
copy
You can send requests to the pod to verify that OpenSearch is up and running:
$ curl -XGET https://localhost:9200 -u 'admin:admin' --insecure
{
"name" : "opensearch-cluster-master-1",
"cluster_uuid" : "hP2gq5bPS3SLp8Z7wXm8YQ",
"distribution" : "opensearch",
"number" : <version>,
"build_type" : <build-type>,
"build_hash" : <build-hash>,
"build_date" : <build-date>,
"build_snapshot" : false,
"lucene_version" : <lucene-version>,
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "The OpenSearch Project: https://opensearch.org/"
}
To identify the OpenSearch deployment that you want to delete:
$ helm list
NAME NAMESPACEREVISIONUPDATED STATUS CHART APP VERSION
To delete or uninstall a deployment, run the following command:
helm delete opensearch-1-1629223146
copy