Sure, here are a few troubleshooting steps you can take:
Check if the kserve deployment is running by running the following command in a new terminal window:
kubectl get pods
If the deployment is running, you should see an output similar to this:
NAME READY STATUS RESTARTS AGE
kserve-models-serving-<random-string>-<random-string> 2/2 Running 0 5m
Check if the kserve deployment has the correct port configured. The default port for kserve is 8080. You can check this by running the following command:
kubectl get services
Look for the service associated with your kserve deployment. The name will be similar to kserve-models-serving
. Check the value in the PORT(S)
column. It should be 8080/TCP
.
Ensure that the endpoint you are trying to access is correct. In the tutorial, you should be able to access the endpoint using curl
like this:
curl -X POST http://<kserve-service-url>/v1/models/sklearn-iris/:predict -d '{"data": {"ndarray": [[5.2, 4.1, 1.5, 0.1]]}}'
Make sure you replace <kserve-service-url>
with the actual URL of your kserve deployment.
Check the logs of your kserve deployment to see if there are any errors. You can use the following command to view the logs:
kubectl logs <kserve-pod-name>
Replace <kserve-pod-name>
with the name of the kserve pod that you retrieved using the kubectl get pods
command.
Hopefully, one of these steps will help you fix the 404 error you are encountering. Let me know if you need further assistance!
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2021-06-15 11:00:00 +0000
Seen: 9 times
Last updated: Feb 24 '22
What conditions could cause Wildfly to automatically undeploy an EAR?
What is the process for implementing automated AWS deployments?
What is the process of automating deployment from GitHub to AWS?
How can Django Chained Dropdown be implemented on Django admin?
What is the process to establish a connection between three Django models?
How can the data obtained through playwright-scrapy be stored in django models?