db14ab1365
Old Active/Passive guides replaced with Active/Active architecture, but A/P vs A/A distinction hidden from users in favour of generic multi-site docs. Closes #31029 Signed-off-by: Ryan Emerson <remerson@redhat.com> Signed-off-by: Alexander Schwartz <aschwart@redhat.com> Co-authored-by: Alexander Schwartz <aschwart@redhat.com>
21 lines
639 B
Text
21 lines
639 B
Text
.Command:
|
|
[source,bash]
|
|
----
|
|
<#noparse>
|
|
NAMESPACE= # <1>
|
|
REGION= # <2>
|
|
HOSTNAME=$(kubectl -n $NAMESPACE get svc accelerator-loadbalancer --template="{{range .status.loadBalancer.ingress}}{{.hostname}}{{end}}")
|
|
aws elbv2 describe-load-balancers \
|
|
--query "LoadBalancers[?DNSName=='${HOSTNAME}'].LoadBalancerArn" \
|
|
--region ${REGION} \
|
|
--output text
|
|
</#noparse>
|
|
----
|
|
<1> The Kubernetes namespace containing the Keycloak deployment
|
|
<2> The AWS Region hosting the Kubernetes cluster
|
|
+
|
|
.Output:
|
|
[source,bash]
|
|
----
|
|
arn:aws:elasticloadbalancing:eu-west-1:606671647913:loadbalancer/net/a49e56e51e16843b9a3bc686327c907b/9b786f80ed4eba3d
|
|
----
|