Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement][opensearch] Add the seedHosts and initialMasterNodes parameters to flexibly set the discovery.seed_hosts and cluster.initial_master_nodes settings. #565

Open
nutslove opened this issue Jul 24, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@nutslove
Copy link

nutslove commented Jul 24, 2024

Is your feature request related to a problem? Please describe.
We would like to set cluster.initial_master_nodes and discovery.seed_hosts directly from Values.
Currently, in the statefulset.yaml template, cluster.initial_master_nodes and discovery.seed_hosts cannot be set flexibly.
We are trying to build an OpenSearch cluster across three different Kubernetes(OpenShift) clusters for certain reasons.
※We plan to deploy one master, one data, and one ingest node (pod) per Kubernetes(OpenShift) cluster.
Therefore, we would like to modify cluster.initial_master_nodes and discovery.seed_hosts from values.

Describe the solution you'd like
Add an if condition to allow setting cluster.initial_master_nodes and discovery.seed_hosts in the statefulset.yaml template if initialMasterNodes and seedHosts exist in values, like the example below:

        {{- if (and (has "master" .Values.roles) (not .Values.singleNode)) }}
        - name: cluster.initial_master_nodes
        {{- if .Values.initialMasterNodes }}
          value: "{{ .Values.initialMasterNodes }}"
        {{- else }}
          value: "{{ template "opensearch.endpoints" . }}"
        {{- end }}
        {{- end }}
        - name: discovery.seed_hosts
        {{- if .Values.seedHosts }}
          value: "{{ .Values.seedHosts }}"
        {{- else }}
          value: "{{ template "opensearch.masterService" . }}-headless"
        {{- end }}

Thank you for your time.

@nutslove nutslove added enhancement New feature or request untriaged Issues that have not yet been triaged labels Jul 24, 2024
@dblock dblock removed the untriaged Issues that have not yet been triaged label Aug 12, 2024
@dblock
Copy link
Member

dblock commented Aug 12, 2024

[Catch All Triage - 1, 2, 3]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

2 participants