@@ -17,24 +17,24 @@ minio_api_node_port=$(kubectl get svc minio-service --namespace minio -o jsonpat
1717minio_external_api_url=" http://$minikube_ip :$minio_api_node_port "
1818
1919# Deploy model and make it accessible
20- service_name=" tensorflow -example"
20+ service_name=" tfserving -example"
2121host_model_path=" ../../../models/tensorflow/1"
22- s3_model_dir=" s3://test-bucket/tensorflow -example/1"
23- storage_uri=" \" s3://test-bucket/tensorflow -example\" "
22+ s3_model_dir=" s3://test-bucket/tfserving -example/1"
23+ storage_uri=" \" s3://test-bucket/tfserving -example\" "
2424aws s3 cp --recursive " $host_model_path " $s3_model_dir --profile $minio_aws_profile_name --endpoint-url=$minio_external_api_url & > /dev/null
2525sed -e " s/{{ inference_service_resource_name }}/$service_name /g" \
2626 -e " s/{{ service_account_resource_name }}/$service_account_resource_name /g" \
2727 -e " s|{{ s3_model_root_path }}|$storage_uri |g" \
28- $templates_path /tensorflow .yaml \
29- > $tmp_kubeconfigs_path /tensorflow -isvc.yaml
30- deploy_service " default" " $tmp_kubeconfigs_path /tensorflow -isvc.yaml" " $service_name "
28+ $templates_path /tfserving .yaml \
29+ > $tmp_kubeconfigs_path /tfserving -isvc.yaml
30+ deploy_service " default" " $tmp_kubeconfigs_path /tfserving -isvc.yaml" " $service_name "
3131wait_for_inference_service 300 5 " $service_name " " default"
3232
3333# Test predictions
3434istio_node_port=$( kubectl get svc istio-ingressgateway --namespace istio-system -o jsonpath=' {.spec.ports[?(@.name=="http2")].nodePort}' )
3535istio_base_url=" http://$minikube_ip :$istio_node_port "
36- model_name=" tensorflow -example"
37- service_name=" tensorflow -example"
36+ model_name=" tfserving -example"
37+ service_name=" tfserving -example"
3838namespace=" default"
3939url=" ${istio_base_url} /v1/models/${model_name} :predict"
4040service_hostname=$( kubectl get inferenceservice ${service_name} --namespace " $namespace " -o jsonpath=' {.status.url}' | cut -d " /" -f 3)
0 commit comments