opensearch-dashboards

by joaquinito2051

Helm chartv3.10.0App 3.10.0

A Helm chart for OpenSearch Dashboards

About this chart

OpenSearch Dashboards Helm Chart

This Helm chart installs OpenSearch Dashboards with configurable TLS, RBAC and much more configurations. This chart caters to a number of different use cases and setups.

  • Requirements
  • Installing
  • Uninstalling

Requirements

  • Kubernetes >= 1.14
  • Helm >= 2.17.0
  • We recommend you to have 8 GiB of memory available for this deployment, or at least 4 GiB for the minimum requirement. Else, the deployment is expected to fail.

Installing

Once you've added this Helm repository as per the repository-level README then you can install the chart as follows:

helm install my-release opensearch/opensearch-dashboards

The command deploys OpenSearch Dashboards with its associated components on the Kubernetes cluster in the default configuration.

NOTE: If using Helm 2 then you'll need to add the --name command line argument. If unspecified, Helm 2 will autogenerate a name for you.

Uninstalling

To delete/uninstall the chart with the release name my-release:

helm uninstall my-release

Configuration

ParameterDescriptionDefault
envFromTemplatable string to be passed to the environment from variables which will be appended to the envFrom: definition for the container[]
configAllows you to add any config files in /usr/share/opensearch-dashboards/ such as opensearch_dashboards.yml. String or map format may be used for specifying content of each configuration file. In case of string format, the whole content of the config file will be replaced by new config file value when in case of using map format content of configuration file will be a result of merge. In both cases content passed through tpl. See values.yaml for an example of the formatting{}
extraContainersArray of extra containers""
extraEnvsExtra environments variables to be passed to OpenSearch services[]
extraInitContainersArray of extra init containers[]
extraVolumeMountsArray of extra volume mounts[]
extraVolumesArray of extra volumes to be added[]
fullnameOverrideOverrides the clusterName and nodeGroup when used in the naming of resources. This should only be used when using a single nodeGroup, otherwise you will have name conflicts""
hostAliasesConfigurable hostAliases[]
image.pullPolicyThe Kubernetes imagePullPolicy valueIfNotPresent
imagePullSecretsConfiguration for imagePullSecrets so that you can use a private registry for your image[]
image.tagThe OpenSearch Docker image tag1.0.0
image.repositoryThe OpenSearch Docker imageopensearchproject/opensearch
ingressConfigurable ingress to expose the OpenSearch service. See values.yaml for an examplesee values.yaml
labelsConfigurable labels applied to all OpenSearch pods{}
lifecycleAllows you to add lifecycle hooks. See values.yaml for an example{}
nameOverrideOverrides the clusterName when used in the naming of resources""
nodeSelectorConfigurable nodeSelector so that you can target specific nodes for your OpenSearch cluster{}
podAnnotationsConfigurable annotations applied to all OpenSearch pods{}
podSecurityContextAllows you to set the securityContext for the podsee values.yaml
priorityClassNameThe name of the PriorityClass. No default is supplied as the PriorityClass must be created first""
rbacConfiguration for creating a role, role binding and ServiceAccount as part of this Helm chart with create: true. Also can be used to reference an external ServiceAccount with serviceAccountName: "externalServiceAccountName"see values.yaml
resourcesAllows you to set the resources for the StatefulSetsee values.yaml
secretMountsAllows you easily mount a secret as a file inside the StatefulSet. Useful for mounting certificates and other secrets. See values.yaml for an example[]
securityContextAllows you to set the securityContext for the containersee values.yaml
service.annotationsLoadBalancer annotations that Kubernetes will use for the service. This will configure load balancer if service.type is LoadBalancer{}
service.headless.annotationsAllow you to set annotations on the headless service{}
service.externalTrafficPolicySome cloud providers allow you to specify the LoadBalancer externalTrafficPolicy. Kubernetes will use this to preserve the client source IP. This will configure load balancer if service.type is LoadBalancer""
service.httpPortNameThe name of the http port within the servicehttp
service.labelsHeadlessLabels to be added to headless service{}
service.labelsLabels to be added to non-headless service{}
service.loadBalancerIPSome cloud providers allow you to specify the loadBalancer IP. If the loadBalancerIP field is not specified, the IP is dynamically assigned. If you specify a loadBalancerIP but your cloud provider does not support the feature, it is ignored.""
service.loadBalancerSourceRangesThe IP ranges that are allowed to access[]
service.nodePortCustom nodePort port that can be set if you are using service.type: nodePort""
service.transportPortNameThe name of the transport port within the servicetransport
service.typeOpenSearch Service TypesClusterIP
service.ipFamilyPolicyThis sets the preferred ip addresses in case of a dual-stack server, there are three options [PreferDualStack, SingleStack, RequireDualStack], more information on dual stack""
service.ipFamiliesSets the preferred IP variants and in which order they are preferred, the first family you list is used for the legacy .spec.ClusterIP field, more information on dual stack""
service.metricsPortThe metrics port (for Performance Analyzer) that Kubernetes will use for the service.9601
service.metricsPortNameThe name of the metrics port (for Performance Analyzer) within the servicemetrics
serviceAccount.automountServiceAccountTokenSpecifies whether the Kubernetes API token for the ServiceAccount should be automatically mounted to the pod.true
tolerationsConfigurable tolerations[]
topologySpreadConstraintsConfiguration for pod topologySpreadConstraints[]
updateStrategyThe updateStrategy for the StatefulSet. By default Kubernetes will wait for the cluster to be green after upgrading each pod. Setting this to OnDelete will allow you to manually delete each pod during upgradesRollingUpdate
extraObjectsArray of extra K8s manifests to deploylist []
autoscaling.enabledPrerequisite: Install/Configure metrics server, to install use kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml, See Metrics Server.false
autoscaling.minReplicasThe lower limit for the number of replicas to which the autoscaler can scale down.1
autoscaling.maxReplicasThe upper limit for the number of replicas to which the autoscaler can scale up.10
autoscaling.targetCPUThe target value of the average CPU across all OpenSearch Dashboards pods.80
autoscaling.targetMemoryThe target value of the average memory across all OpenSearch Dashboards pods. Value should be tuned based on the requested memory value for OpenSearch Dashboards pods. Scaling based on memory utilization may be necessary for large datasets or complex dashboards.80
livenessProbeConfiguration fields for the liveness probesee exampleLiveness in values.yaml
readinessProbeConfiguration fields for the readiness probesee exampleReadiness in values.yaml
startupProbeConfiguration fields for the startup probesee exampleStartup in values.yaml
plugins.enabledAllow/disallow to add 3rd Party / Custom plugins not offered in the default OpenSearchDashboards imagefalse
plugins.installListArray containing the Opensearch Dashboards plugins to be installed in container[]
opensearchDashboardsYml.defaultModeAllow you to set the defaultMode for the opensearch_dashboards.yml mounted as configMap
dashboardAnnotationsAllows you to configure custom annotation in the deployement of the OpenSearchDashboards container{}
serviceMonitor.enabledEnables the creation of a ServiceMonitor resource for Prometheus monitoring. Requires the Prometheus Operator to be installed in your Kubernetes cluster.false
serviceMonitor.pathPath where metrics are exposed. Applicable only if serviceMonitor.enabled is set to true./_prometheus/metrics
serviceMonitor.intervalInterval at which metrics should be scraped by Prometheus. Applicable only if serviceMonitor.enabled is set to true.10s

Deploy opensearch-dashboards with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has opensearch-dashboards on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartopensearch-dashboards is pinned at v3.10.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply