Run OpenSearch Dashboards using 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.
Make sure that you can send requests to your OpenSearch pod:
Change to the
opensearch-dashboards
directory:cd opensearch-dashboards
Package the Helm chart:
helm package .
Deploy OpenSearch Dashboards:
Sample output
NAME: opensearch-dashboards-1-1629223356
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
1. Get the application URL by running these commands:
export POD_NAME=$(kubectl get pods --namespace default -l "app.kubernetes.io/name=opensearch-dashboards,app.kubernetes.io/instance=op
export CONTAINER_PORT=$(kubectl get pod --namespace default $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}")
echo "Visit http://127.0.0.1:8080 to use your application"
kubectl --namespace default port-forward $POD_NAME 8080:$CONTAINER_PORT
To make sure your OpenSearch Dashboards pod is up and running, run the following command:
To set up port forwarding to access OpenSearch Dashboards, exit the OpenSearch shell and run the following command:
$ kubectl port-forward deployment/opensearch-dashboards-1-1629223356 5601
You can now access OpenSearch Dashboards from your browser at: .
To identify the OpenSearch Dashboards deployment that you want to delete:
$ helm list
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
opensearch-1-1629223146 default 1 2021-08-17 17:59:07.664498239 +0000 UTCdeployedopensearch-1.0.0 1.0.0
oyedopensearch-dashboards-1.0.0 1.0.0