Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P15860
KFServing + Dex Inference
Active
Public
Actions
Authored by
•
ACraze
on May 7 2021, 6:32 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
Lift-Wing
Referenced Files
F34445428: KFServing + Dex Inference
May 7 2021, 6:32 PM
2021-05-07 18:32:16 (UTC+0)
Subscribers
None
MODEL_NAME
=
tf-sample
INPUT_PATH
=
@./tf-input.json
INGRESS_HOST
=
$(
minikube ip
)
CLUSTER_IP
=
$(
kubectl -n istio-system get service istio-ingressgateway -o
jsonpath
=
'{.spec.clusterIP}'
)
SERVICE_HOSTNAME
=
$(
kubectl -n kubeflow-user get inferenceservice
${
MODEL_NAME
}
-o
jsonpath
=
'{.status.url}'
|
cut -d
"/"
-f
3
)
SESSION
=
<insert session cookie>
curl -v -H
"Host:
${
SERVICE_HOSTNAME
}
"
-H
"Cookie: authservice_session=
${
SESSION
}
"
http://
${
CLUSTER_IP
}
/v1/models/
${
MODEL_NAME
}
:predict -d
${
INPUT_PATH
}
Event Timeline
•
ACraze
created this paste.
May 7 2021, 6:32 PM
2021-05-07 18:32:16 (UTC+0)
Log In to Comment