We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f8b934 commit b70ce01Copy full SHA for b70ce01
1 file changed
stacks/jupyterhub-keycloak/keycloak.yaml
@@ -61,7 +61,9 @@ spec:
61
while :
62
do
63
echo "Determining Keycloak public reachable address"
64
- KEYCLOAK_ADDRESS=$(kubectl get svc keycloak -o json | jq -r --argfile endpoints <(kubectl get endpoints keycloak -o json) --argfile nodes <(kubectl get nodes -o json) '($nodes.items[] | select(.metadata.name == $endpoints.subsets[].addresses[].nodeName) | .status.addresses | map(select(.type == "ExternalIP" or .type == "InternalIP")) | min_by(.type) | .address | tostring) + ":" + (.spec.ports[] | select(.name == "https") | .nodePort | tostring)')
+ ENDPOINTS=$(kubectl get endpoints keycloak -o json)
65
+ NODES=$(kubectl get nodes -o json)
66
+ KEYCLOAK_ADDRESS=$(kubectl get svc keycloak -o json | jq -r --argjson endpoints "$ENDPOINTS" --argjson nodes "$NODES" '($nodes.items[] | select(.metadata.name == $endpoints.subsets[].addresses[].nodeName) | .status.addresses | map(select(.type == "ExternalIP" or .type == "InternalIP")) | min_by(.type) | .address | tostring) + ":" + (.spec.ports[] | select(.name == "https") | .nodePort | tostring)')
67
echo "Found Keycloak running at $KEYCLOAK_ADDRESS"
68
69
if [ ! -z "$KEYCLOAK_ADDRESS" ]; then
0 commit comments