Skip to content

Commit

Permalink
feat(prerequisites): add optional OpenSearch chart with default confi…
Browse files Browse the repository at this point in the history
…guration (#476)
  • Loading branch information
Masterchen09 authored Jun 18, 2024
1 parent 362671f commit 6e6fa86
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/datahub/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A Helm chart for LinkedIn DataHub
type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.4.16
version: 0.4.17
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion: 0.13.2
Expand Down
6 changes: 6 additions & 0 deletions charts/datahub/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ elasticsearchSetupJob:
helm.sh/hook-weight: "-5"
helm.sh/hook-delete-policy: before-hook-creation
podAnnotations: {}
# If you want to use OpenSearch instead of ElasticSearch add the USE_AWS_ELASTICSEARCH environment variable below
# extraEnvs:
# - name: USE_AWS_ELASTICSEARCH
# value: "true"
# Add extra sidecar containers to job pod
extraSidecars: []
# - name: my-image-name
Expand Down Expand Up @@ -412,6 +416,8 @@ global:

elasticsearch:
host: "elasticsearch-master"
# If you want to use OpenSearch instead of ElasticSearch use different hostname below
# host: "opensearch-cluster-master"
port: "9200"
skipcheck: "false"
insecure: "false"
Expand Down
6 changes: 5 additions & 1 deletion charts/prerequisites/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@ description: A Helm chart for packages that Datahub depends on
type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.1.10
version: 0.1.11
dependencies:
- name: elasticsearch
version: 7.17.3
repository: https://helm.elastic.co
condition: elasticsearch.enabled
- name: opensearch
version: 2.18.0
repository: https://opensearch-project.github.io/helm-charts
condition: opensearch.enabled
# This chart deploys an enterprise or community version of neo4j
- name: neo4j
version: 5.11.0
Expand Down
45 changes: 41 additions & 4 deletions charts/prerequisites/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ elasticsearch:
# a master node when deploying on a single node Minikube / Kind / etc cluster.
antiAffinity: "soft"

# # If you are running a multi-replica cluster, comment this out
# If you are running a multi-replica cluster, comment this out
clusterHealthCheckParams: "wait_for_status=yellow&timeout=1s"

# # Shrink default JVM heap.
# Shrink default JVM heap.
esJavaOpts: "-Xmx512m -Xms512m"

# # Allocate smaller chunks of memory per pod.
# Allocate smaller chunks of memory per pod.
resources:
requests:
cpu: "100m"
Expand All @@ -27,14 +27,51 @@ elasticsearch:
cpu: "1000m"
memory: "1024M"

# # Request smaller persistent volumes.
# Request smaller persistent volumes.
# volumeClaimTemplate:
# accessModes: ["ReadWriteOnce"]
# storageClassName: "standard"
# resources:
# requests:
# storage: 100M

opensearch:
enabled: false

# If you're running in production, set this to false, replicas to 3 and uncomment antiAffinity below
# Or alternatively if you're running production, bring your own OpenSearch
singleNode: true
# replicas: 3
# antiAffinity: "hard"

# By default security is enabled for OpenSearch, disable it here.
config:
opensearch.yml: |
plugins:
security:
disabled: true
extraEnvs:
- name: DISABLE_INSTALL_DEMO_CONFIG
value: "true"

image:
tag: "2.11.0"

# opensearchJavaOpts: "-Xmx512M -Xms512M"

# resources:
# requests:
# cpu: "1000m"
# memory: "100Mi"

# Request smaller persistent volumes.
# persistence:
# storageClass: "standard"
# accessModes:
# - ReadWriteOnce
# size: 100M

# Official neo4j chart, supports both community and enterprise editions
# see https://neo4j.com/docs/operations-manual/current/kubernetes/ for more information
# source: https://github.com/neo4j/helm-charts
Expand Down

0 comments on commit 6e6fa86

Please sign in to comment.