Skip to content

Commit b569f6e

Browse files
author
naman-msft
committed
updated docs;
1 parent ec27844 commit b569f6e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

scenarios/DeployTensorflowOnAKS/deploy-tensorflow-on-aks.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,12 @@ Retrieve the external IP address of the TensorFlow service.
192192

193193
```bash
194194
while true; do
195-
EXTERNAL_IP=$(kubectl get service tensorflow-service --namespace $NAMESPACE -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
196-
if [ -n "$EXTERNAL_IP" ]; then
197-
echo "External IP: $EXTERNAL_IP"
195+
ENDPOINTS=$(kubectl get endpoints tensorflow-service --namespace $NAMESPACE -o jsonpath='{.subsets[*].addresses[*].ip}')
196+
if [ -n "$ENDPOINTS" ]; then
197+
echo "Service endpoints: $ENDPOINTS"
198198
break
199199
else
200-
echo "Waiting for external IP..."
200+
echo "Waiting for service endpoints..."
201201
sleep 10
202202
fi
203203
done
@@ -208,7 +208,7 @@ Results:
208208
<!-- expected_similarity=0.3 -->
209209

210210
```text
211-
External IP: xx.xx.xx.xx
211+
Service endpoints: 10.244.1.5 10.244.1.6
212212
```
213213

214-
Use the `EXTERNAL-IP` address to access the TensorFlow service.
214+
This confirms that the service is routing correctly to its backend pods.

0 commit comments

Comments
 (0)