question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to use KFServing on Kubeflow

See original GitHub issue

/kind bug

What steps did you take and what happened: I was trying to use KFServing for Model Prediction as described here.

MODEL_NAME=flowers-sample
INPUT_PATH=@./input.json
INGRESS_GATEWAY=istio-ingressgateway
CLUSTER_IP=$(kubectl -n istio-system get service $INGRESS_GATEWAY -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
SERVICE_HOSTNAME=$(kubectl get inferenceservice ${MODEL_NAME} -o jsonpath='{.status.url}' | cut -d "/" -f 3)

I realize that CLUSTER_IP & SERVICE_HOSTNAME are blank. On checking the JSON file, it can be figured out that the jsonpath specified for CLUSTER_IP has been modified to spec.clusterIP, whereas the SERVICE_HOSTNAME continues to remain blank leading to failure of the steps that follow.

What did you expect to happen: The commands to execute successfully & output a model prediction.

Anything else you would like to add: I tried to hardcode the SERVICE_HOSTNAME to flowers-sample.default.example.com but that led to the connection time out error.

Environment:

  • Istio Version:
  • Knative Version:
  • KFServing Version:
  • Kubeflow version: v1.0.2
  • Kfdef: k8s_istio
  • Minikube version:
  • Kubernetes version: (use kubectl version): Client Version: 1.18 Server Version: 1.15
  • OS (e.g. from /etc/os-release): Ubuntu 18.04

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:46 (20 by maintainers)

github_iconTop GitHub Comments

1reaction
yuzisuncommented, Jul 3, 2020

@Manvi07 Looks like it is not able to create the istio virtual service due to some networking issue on your cluster.

@yuzisun any suggestions on how should I go about the problem?

@Manvi07 this smells like firewall issue on your cluster, in this case knative is calling istio webhook istio-galley in istio-system namespace to create the virtual service but timed out. It is best to check your firewall setup.

1reaction
yuzisuncommented, Jul 1, 2020

@Manvi07 if you remove the annotation "sidecar.istio.io/inject":"true" on both autoscaler and activator deployment, the pod should then come up.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to use KFServing on Kubeflow · Issue #912 - GitHub
I was trying to use KFServing for Model Prediction as described here. MODEL_NAME=flowers-sample INPUT_PATH=@./input.json INGRESS_GATEWAY=istio- ...
Read more >
Kubeflow 1.0 기능 #5 (KFServing, TFServing)
It aims to solve production model serving use cases by providing performant, high abstraction interfaces for common ML frameworks like ...
Read more >
Kubeflow v1.5 improves ML model accuracy, reduces ...
The Kubeflow v1.5 software release improves ML model accuracy, lowers infrastructure costs, and simplifies operations by providing a more ...
Read more >
kfserving 1.3.0 · helm/cowboysysop - Artifact Hub
This chart bootstraps a KFServing deployment on a Kubernetes cluster using the Helm package manager. Prerequisites. Kubernetes >= 1.19 and <= 1.21; cert ......
Read more >
End-to-end Pipeline with KFServing - D2iQ Docs
Without the requisite Kubernetes operators and custom Docker images, these notebooks will likely not work. Kubeflow Pipelines: from Training to Serving.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found