-
Notifications
You must be signed in to change notification settings - Fork 159
Create central "Elastic Stack settings" page #1179
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
Merged
Merged
Changes from 7 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
29a1946
v1
shainaraskas 350b0da
more
shainaraskas 16bd208
finish overview
shainaraskas 3cb6bda
links
shainaraskas 181a641
Update deploy-manage/deploy/cloud-on-k8s/_snippets/es-config.md
shainaraskas 4d478b8
fixes
shainaraskas 9b4b0ae
Merge branch 'main' into central-config-pg
shainaraskas ca8042f
Merge branch 'main' into central-config-pg
shainaraskas d59f691
Update deploy-manage/deploy/cloud-on-k8s/_snippets/es-config.md
shainaraskas 297a6a3
edu feedback
shainaraskas c29d6e3
Merge branch 'main' into central-config-pg
shainaraskas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
Any setting defined in the `elasticsearch.yml` configuration file can also be defined for a set of {{es}} nodes in the `spec.nodeSets[?].config` section. | ||
|
||
Some settings are managed by ECK. It is not recommended to change these managed settings. For a complete list, refer to [Settings managed by ECK](/deploy-manage/deploy/cloud-on-k8s/settings-managed-by-eck.md). | ||
|
||
```yaml | ||
spec: | ||
nodeSets: | ||
- name: masters | ||
count: 3 | ||
config: | ||
# On Elasticsearch versions before 7.9.0, replace the node.roles configuration with the following: | ||
# node.master: true | ||
node.roles: ["master"] | ||
xpack.ml.enabled: true | ||
- name: data | ||
count: 10 | ||
config: | ||
# On Elasticsearch versions before 7.9.0, replace the node.roles configuration with the following: | ||
# node.master: false | ||
# node.data: true | ||
# node.ingest: true | ||
# node.ml: true | ||
# node.transform: true | ||
node.roles: ["data", "ingest", "ml", "transform"] | ||
``` | ||
|
||
:::{warning} | ||
ECK parses {{es}} configuration and normalizes it to YAML. Consequently, some {{es}} configuration schema are impossible to express with ECK and, therefore, must be set using [dynamic cluster settings](/deploy-manage/deploy/self-managed/configure-elasticsearch.md#cluster-setting-types). For example: | ||
```yaml | ||
spec: | ||
nodeSets: | ||
- name: data | ||
# ... | ||
config: | ||
cluster.max_shards_per_node: 1000 | ||
cluster.max_shards_per_node.frozen: 1000 # This won't work because cluster.max_shards_per_node is defined as a scalar value on the previous line | ||
# ... | ||
``` | ||
::: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
You can add your own {{kib}} settings to the `spec.config` section. | ||
|
||
The following example demonstrates how to set the [`elasticsearch.requestHeadersWhitelist`](kibana://reference/configuration-reference/general-settings.md#elasticsearch-requestheaderswhitelist) configuration option. | ||
|
||
```yaml | ||
apiVersion: kibana.k8s.elastic.co/v1 | ||
kind: Kibana | ||
metadata: | ||
name: kibana-sample | ||
spec: | ||
version: 8.16.1 | ||
count: 1 | ||
elasticsearchRef: | ||
name: "elasticsearch-sample" | ||
config: | ||
elasticsearch.requestHeadersWhitelist: | ||
- authorization | ||
``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
deploy-manage/deploy/self-managed/_snippets/auto-security-config-rpm-deb.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
deploy-manage/deploy/self-managed/_snippets/auto-security-config.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
deploy-manage/deploy/self-managed/_snippets/clean-up-multinode.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
deploy-manage/deploy/self-managed/_snippets/config-file-format.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
The configuration format is [YAML](https://yaml.org/). Here is an example of changing the path of the data and logs directories in {{es}}: | ||
|
||
```yaml | ||
path: | ||
data: /var/lib/elasticsearch | ||
logs: /var/log/elasticsearch | ||
``` | ||
|
||
Settings can also be flattened as follows: | ||
|
||
```yaml | ||
path.data: /var/lib/elasticsearch | ||
path.logs: /var/log/elasticsearch | ||
``` | ||
|
||
In YAML, you can format non-scalar values as sequences: | ||
|
||
```yaml | ||
discovery.seed_hosts: | ||
- 192.168.1.10:9300 | ||
- 192.168.1.11 | ||
- seeds.mydomain.com | ||
``` | ||
|
||
Though less common, you can also format non-scalar values as arrays: | ||
|
||
```yaml | ||
discovery.seed_hosts: ["192.168.1.10:9300", "192.168.1.11", "seeds.mydomain.com"] | ||
``` |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.