You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[elasticsearch] use new node.roles settings (#1186)
* [elasticsearch] use new node.roles settings
This commit update Elasticsearch chart to use the new node.roles
settings introduced in elastic/elasticsearch#54998.
* [elasticsearch] update doc
* [elasticsearch] update examples
* add link to roles doc
* add workaround for coordinating node
* update roles list
* fixup! update roles list
* remove data_frozen from default roles
this is needed because `data_frozen` role doesn't exist in Elasticsearch < 7.12.0
* fixup! remove data_frozen from default roles
Copy file name to clipboardExpand all lines: elasticsearch/README.md
+23-3Lines changed: 23 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -154,7 +154,7 @@ support multiple versions with minimal changes.
154
154
|`readinessProbe`| Configuration fields for the readiness [probe][]| see [values.yaml][]|
155
155
|`replicas`| Kubernetes replica count for the StatefulSet (i.e. how many pods) |`3`|
156
156
|`resources`| Allows you to set the [resources][] for the StatefulSet | see [values.yaml][]|
157
-
|`roles`| A hash map with the specific [roles][] for the `nodeGroup`| see [values.yaml][]|
157
+
|`roles`| A list with the specific [roles][] for the `nodeGroup`| see [values.yaml][]|
158
158
|`schedulerName`| Name of the [alternate scheduler][]|`""`|
159
159
|`secretMounts`| Allows you easily mount a secret as a file inside the StatefulSet. Useful for mounting certificates and other secrets. See [values.yaml][] for an example |`[]`|
160
160
|`securityContext`| Allows you to set the [securityContext][] for the container | see [values.yaml][]|
@@ -212,8 +212,27 @@ while they share the same `clusterName` value.
212
212
213
213
For each Helm release, the nodes types can then be defined using `roles` value.
214
214
215
-
An example of Elasticsearch cluster using 2 different Helm releases for master
216
-
and data nodes can be found in [examples/multi][].
215
+
An example of Elasticsearch cluster using 2 different Helm releases for master,
216
+
data and coordinating nodes can be found in [examples/multi][].
217
+
218
+
#### Coordinating nodes
219
+
220
+
Every node is implicitly a coordinating node. This means that a node that has an
221
+
explicit empty list of roles will only act as a coordinating node.
222
+
223
+
When deploying coordinating-only node with Elasticsearch chart, it is required
224
+
to define the empty list of roles in both `roles` value and `node.roles`
225
+
settings:
226
+
227
+
```yaml
228
+
roles: []
229
+
230
+
esConfig:
231
+
elasticsearch.yml: |
232
+
node.roles: []
233
+
```
234
+
235
+
More details in [#1186 (comment)][]
217
236
218
237
#### Clustering and Node Discovery
219
238
@@ -380,6 +399,7 @@ about our development and testing process.
0 commit comments