File tree Expand file tree Collapse file tree
docs/modules/demos/images/logging
stacks/jupyterhub-keycloak Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6161 while :
6262 do
6363 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)')
64+ 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)')
6567 echo "Found Keycloak running at $KEYCLOAK_ADDRESS"
6668
6769 if [ ! -z "$KEYCLOAK_ADDRESS" ]; then
You can’t perform that action at this time.
0 commit comments