问题描述
我已经在 Linux 桌面上安装了 minikube 集群和 kfserving。
然后我跟着两个教程
https://github.com/kubeflow/kfserving/tree/master/docs/samples/v1beta1/custom/torchserve
https://github.com/kubeflow/kfserving/tree/master/docs/samples/v1alpha2/custom/kfserving-custom-model
在第二个教程中,我需要将“名称:自定义”从“自定义:”部分移动到 yaml 文件中的“容器:”部分。
我希望服务服务能够正常工作并响应 Kubernetes 中服务的服务请求和 pod。
我使用 2021 年 5 月起的最新稳定版本。
但是我在两个教程中都有相同的错误。波纹管命令来自第一个教程。当我准备带有模型的 docker 图像并运行时
$ kubectl apply -f torchserve-custom.yaml
命令。
我看到像
inferenceservice.serving.kubeflow.org/torchserve-custom created
但是我无法运行预测,因为找不到 404 服务。
当我跑
$ kubectl get pods --all-namespaces
我没有看到任何新的豆荚。
但我可以删除服务
$ kubectl delete -f torchserve-custom
当我遵循其他教程时,例如:https://github.com/kubeflow/kfserving/tree/master/docs/samples/v1beta1/torchserve 一切正常,我可以运行预测。
为什么我不能运行预测?
为什么要创建新的 Pod?
如果上述教程不起作用,如何使用 docker 镜像在 kfserving 中设置服务?
解决方法
事实证明,我的本地 docker 注册表在 kubernetes 中是不可见的。 kubectl get events
显示内部错误“无法获取图像...”