-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Documentation on how get full IP list #72
Co-authored-by: Dominika Vagnerova <[email protected]>
- Loading branch information
1 parent
ebc4f9c
commit 682a515
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
24 changes: 24 additions & 0 deletions
24
documentation/asciidoc/topics/proc_obtaining_IP_address.adoc
This file contains 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,24 @@ | ||
[id='obtaining_IP_addresses_{context}'] | ||
= Obtaining IP addresses for all {brandname} pods | ||
|
||
[role="_abstract"] | ||
You can retrieve a list of all IP addresses for running {brandname} pods. | ||
|
||
[IMPORTANT] | ||
==== | ||
link:{helm_docs}#connecting-clients-internal_connecting-clusters[Connecting Hot Rod clients running on {k8s}] is the recommended approach as it ensures the initial connection to one of the available pods. | ||
==== | ||
|
||
.Procedure | ||
Obtain all the IP addresses for a running {brandname} pods in the following ways: | ||
|
||
* Using the {k8s} API: | ||
** Access `${APISERVER}/api/v1/namespaces/<chart-namespace>/endpoints/<helm-release-name>` to retrieve the `endpoints` {k8s} resource associated with the `<helm-release-name>` service. | ||
|
||
* Using the {k8s} DNS service: | ||
** Query the DNS service for the name `<helm-release-name>-ping` to obtain IPs for all the nodes in a cluster. | ||
|
||
[role="_additional-resources"] | ||
.Additional resources | ||
* link:https://kubernetes.io/docs/tasks/run-application/access-api-from-pod/[Accessing the Kubernetes API from a Pod] | ||
* link:https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/[DNS for Services and Pods] |