opendistro-for-elasticsearch / opendistro-build

🧰 Open Distro Build Scripts
https://opendistro.github.io/
Apache License 2.0
344 stars 175 forks source link

How are the variables in the values.yaml file defined? #675

Closed MitHub7 closed 3 years ago

MitHub7 commented 3 years ago

https://github.com/opendistro-for-elasticsearch/opendistro-build/blob/b42c52309f05dd9d28accaaf0abbf7c795d0763f/helm/opendistro-es/values.yaml#L454

Hello,

In the elasticsearch.config part of the values.yaml file, there is these variables like ${CLUSTER_NAME}, ${NODE_MASTER}, ${HTTP_ENABLE} that are referenced but its unclear to me where these should be defined.

Can you please tell me how and where these variables are supposed to be defined first? Or are we just supposed to replace them by hard-coded values?

sreekarjami commented 3 years ago

Hi @MitHub7, Thanks for opening the issue. There are different ways to assign values during the helm install. Please follow this link, which should provide all the different options and how you can use them.

Please inform if you still have any concerns.

MitHub7 commented 3 years ago

Hello @sreekarjami, thanks for answering. I already know about helm values. Here I am specifically asking about variables that exists within the values.yaml file itself. Take for example the variable I gave as an example : name: ${CLUSTER_NAME}

Where is this variable ${CLUSTER_NAME} supposed to be defined?

sreekarjami commented 3 years ago

Hi @MitHub7 , The value of the variable ${CLUSTER_NAME} can be hardcoded in the values.yml or you can pass it using -set flag during the install dynamically.