-
Notifications
You must be signed in to change notification settings - Fork 152
ipv6 support for remote addresses added #3361
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
Open
eedugon
wants to merge
5
commits into
main
Choose a base branch
from
rcs_ipv6_support_9.2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+96
−213
Open
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
0a3ba27
ipv6 support for remote addresses added
eedugon 1956643
ipv6 support for remote addresses added
eedugon f4a081f
ipv6 syntax added and elasticsearch api method fixed
eedugon 70bc48d
ipv6 syntax added and elasticsearch api method fixed
eedugon ca6ea73
note integrated into text
eedugon 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
42 changes: 42 additions & 0 deletions
42
deploy-manage/remote-clusters/_snippets/rcs-elasticsearch-api-snippet-self.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,42 @@ | ||
<!-- | ||
This snippet is in use in the following locations: | ||
- ece-remote-cluster-self-managed.md | ||
- ec-remote-cluster-self-managed.md | ||
--> | ||
To configure a self-managed cluster as a remote cluster, use the [cluster update settings API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-put-settings). Configure the following fields: | ||
|
||
* `mode`: `proxy` | ||
* `proxy_address`: Enter the endpoint of the remote self-managed cluster, including the hostname, FQDN, or IP address, and the port. Both IPv4 and IPv6 ({applies_to}`stack: ga 9.2`) addresses are supported. | ||
|
||
::::{note} | ||
Use the correct port for your authentication method: | ||
* **API keys**: Use the port configured in the remote cluster interface of the remote cluster (defaults to `9443`). | ||
* **TLS Certificates**: Use the {{es}} transport port (defaults to `9300`). | ||
|
||
When using an IPv6 address ({applies_to}`stack: ga 9.2`), enclose it in square brackets followed by the port number. For example: `[2001:db8::1]:9443`. | ||
:::: | ||
|
||
* `server_name`: Specify a value if the certificate presented by the remote cluster is signed for a different name than the proxy_address. | ||
|
||
This is an example of the API call to `_cluster/settings`: | ||
|
||
```json | ||
PUT /_cluster/settings | ||
{ | ||
"persistent": { | ||
"cluster": { | ||
"remote": { | ||
"alias-for-my-remote-cluster": { | ||
"mode":"proxy", | ||
"proxy_address": "a542184a7a7d45b88b83f95392f450ab.192.168.44.10.ip.es.io:9300", | ||
"server_name": "a542184a7a7d45b88b83f95392f450ab.192.168.44.10.ip.es.io" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
``` | ||
|
||
::::{note} | ||
When using API key authentication, the cluster alias must match the one you configured when adding the API key in the Cloud UI. | ||
:::: |
31 changes: 31 additions & 0 deletions
31
deploy-manage/remote-clusters/_snippets/rcs-kibana-api-snippet-self.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,31 @@ | ||
<!-- | ||
This snippet is in use in the following locations: | ||
- ece-remote-cluster-self-managed.md | ||
- ec-remote-cluster-self-managed.md | ||
--> | ||
1. Open the {{kib}} main menu, and select **Stack Management > Data > Remote Clusters > Add a remote cluster**. | ||
2. In **Select connection type**, choose the authentication mechanism you prepared earlier (**API keys** or **Certificates**), and click **Next**. | ||
|
||
3. In **Add connection information**, fill in the following fields: | ||
|
||
* **Remote cluster name**: This *cluster alias* is a unique identifier that represents the connection to the remote cluster and is used to distinguish local and remote indices. | ||
|
||
When using API key authentication, this alias must match the **Remote cluster name** you configured when adding the API key in the Cloud UI. | ||
* **Remote address**: Enter the endpoint of the remote self-managed cluster, including the hostname, FQDN, or IP address, and the port. Both IPv4 and IPv6 ({applies_to}`stack: ga 9.2`) addresses are supported. | ||
|
||
::::{note} | ||
Use the correct port for your authentication method: | ||
* **API keys**: Use the port configured in the remote cluster interface of the remote cluster (defaults to `9443`). | ||
* **TLS Certificates**: Use the {{es}} transport port (defaults to `9300`). | ||
|
||
When using an IPv6 address ({applies_to}`stack: ga 9.2`), enclose it in square brackets followed by the port number. For example: `[2001:db8::1]:9443`. | ||
:::: | ||
|
||
* **Configure advanced options** (optional): Expand this section if you need to customize additional settings. | ||
* **TLS server name**: Specify a value if the certificate presented by the remote cluster is signed for a different name than the remote address. | ||
* **Socket connections**: Define the number of connections to open with the remote cluster. | ||
|
||
For a full list of available client connection settings, refer to [remote cluster settings reference](elasticsearch://reference/elasticsearch/configuration-reference/remote-clusters.md#remote-cluster-proxy-settings). | ||
|
||
4. Click **Next**. | ||
5. In **Confirm setup**, click **Add remote cluster** (you have already established trust in a previous step). |
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need to repeat the applies to here