C4W2: Autoscaling TensorFlow Model Deployments with TF Serving and Kubernetes: External IP

Hello together,

tried out different commands, e.g. “ifconfig” or “hostname -”, but for my command “EXTERNAL_IP=[172.17.0.7]
curl -d @locust/request-body.json -X POST http://${172.17.0.7}:8501/v1/models/image_classifier:predict” I receive the output:
“-bash: http://${172.17.0.4}:8501/v1/models/image_classifier:predict: bad substitution”.

Thanks a lot.

Hi @Simon_Seitz,

You don’t need [] when you set EXTERNAL_IP=. Please try again with 172.17.0.4 only.

Let me know if it helps,
Best regards,
Vy

Hi @Th_o_Vy_Le_Nguy_n ,

I am getting curl: (7) Failed to connect to 35.188.159.31 port 8501: Connection refused issue in this lab on running the predict curl.
PFA the screenshot for your reference.

Please let me know if I’m missing something.

Thanks.

Hi,
I’m sorry for the delay.
Please try entering these commands

EXTERNAL_IP=35.188.159.31 # external ip here

curl -d @locust/request-body.json -X POST http://${EXTERNAL_IP}:8501/v1/models/image_classifier:predict

I am getting the connection timeout error continuously. I tried multiple times now

Hi,
Could you send a screenshot of the error?

Hi,

It got resolved.

The error was a connection timeout which caused further errors in my task 11.
But I restarted the entire project, and it got resolved