Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
[elasticsearch] add coordinator node to multi test (elastic#854)
Browse files Browse the repository at this point in the history
This commit add a coordinator node group to elasticsearch multi test.
This also add ml and remote_cluster_client roles to default values.
  • Loading branch information
jmlrt committed Oct 27, 2020
1 parent 3ef7a27 commit 702ca8f
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 3 deletions.
2 changes: 2 additions & 0 deletions elasticsearch/examples/multi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ RELEASE := helm-es-multi-master
install:
helm upgrade --wait --timeout=600 --install --values ./master.yml $(PREFIX)-master ../../
helm upgrade --wait --timeout=600 --install --values ./data.yml $(PREFIX)-data ../../
helm upgrade --wait --timeout=600 --install --values ./client.yml $(PREFIX)-client ../../

test: install goss

purge:
helm del --purge $(PREFIX)-master
helm del --purge $(PREFIX)-data
helm del --purge $(PREFIX)-client
6 changes: 4 additions & 2 deletions elasticsearch/examples/multi/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# Multi

This example deploy an Elasticsearch 6.8.14-SNAPSHOT cluster composed of 2 different Helm
This example deploy an Elasticsearch 6.8.14-SNAPSHOT cluster composed of 3 different Helm
releases:

- `helm-es-multi-master` for the 3 master nodes using [master values][]
- `helm-es-multi-data` for the 3 data nodes using [data values][]
- `helm-es-multi-client` for the 3 client nodes using [client values][]

## Usage

* Deploy the 2 Elasticsearch releases: `make install`
* Deploy the 3 Elasticsearch releases: `make install`

* You can now setup a port forward to query Elasticsearch API:

Expand All @@ -22,6 +23,7 @@ releases:
You can also run [goss integration tests][] using `make test`


[client values]: https://github.com/elastic/helm-charts/tree/6.8/elasticsearch/examples/multi/client.yml
[data values]: https://github.com/elastic/helm-charts/tree/6.8/elasticsearch/examples/multi/data.yml
[goss integration tests]: https://github.com/elastic/helm-charts/tree/6.8/elasticsearch/examples/multi/test/goss.yaml
[master values]: https://github.com/elastic/helm-charts/tree/6.8/elasticsearch/examples/multi/master.yml
14 changes: 14 additions & 0 deletions elasticsearch/examples/multi/client.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---

clusterName: "multi"
nodeGroup: "client"

roles:
master: "false"
ingest: "false"
data: "false"
ml: "false"
remote_cluster_client: "false"

persistence:
enabled: false
2 changes: 2 additions & 0 deletions elasticsearch/examples/multi/data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ roles:
master: "false"
ingest: "true"
data: "true"
ml: "false"
remote_cluster_client: "false"
2 changes: 2 additions & 0 deletions elasticsearch/examples/multi/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ roles:
master: "true"
ingest: "false"
data: "false"
ml: "false"
remote_cluster_client: "false"
2 changes: 1 addition & 1 deletion elasticsearch/examples/multi/test/goss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ http:
body:
- 'green'
- '"cluster_name":"multi"'
- '"number_of_nodes":6'
- '"number_of_nodes":9'
- '"number_of_data_nodes":3'
2 changes: 2 additions & 0 deletions elasticsearch/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ roles:
master: "true"
ingest: "true"
data: "true"
remote_cluster_client: "true"
# ml: "true" # ml is not availble with elasticsearch-oss

replicas: 3
minimumMasterNodes: 2
Expand Down

0 comments on commit 702ca8f

Please sign in to comment.