简体   繁体   English

没有准备好的服务副本 - azure aks

[英]No ready replicas for service - azure aks

I am following the below link to deploy a model to azure Kube.netes service using SDK. https://learn.microsoft.com/en-us/azure/machine-learning/how-to-deploy-azure-kube.netes-service我正在按照以下链接使用 SDK 将 model 部署到 azure Kube.netes 服务。https://learn.microsoft.com/en-us/azure/machine-learning/how-to-deploy-azure-kube.netes -服务

When I call deployed service, while it is running, either by service.run() or by request.post().当我通过 service.run() 或 request.post() 调用已部署的服务时,它正在运行。 I get this message "No ready replicas for service".我收到此消息“没有准备好服务的副本”。 Then in a while service goes to transitioning state. Any suggestions?然后过一会儿服务转到 state。有什么建议吗?

To figure out why your service is unavailable, you'll need to dig into the logs.要找出您的服务不可用的原因,您需要深入研究日志。

If you are most comfortable using the python interface, you can retrieve the docker container logs for your service through the service.get_logs() method.如果您最习惯使用 python 接口,则可以通过service.get_logs()方法检索服务的 docker 容器日志 There are additional troubleshooting steps in that document which might be helpful, in particular making sure you catch exceptions in your run function.该文档中还有其他故障排除步骤可能会有所帮助,特别是确保您在run function 时捕获异常。

Alternatively, you can use kubectl to interface with your AKS cluster from CLI and pull logs that way.或者,您可以使用kubectl从 CLI 连接您的 AKS 集群并以这种方式提取日志。

If you have some specific errors you want help with, please update your question to reflect the steps you are taking as well as a minimal amount of code/config which is needed to reproduce.如果您有一些特定的错误需要帮助,请更新您的问题以反映您正在采取的步骤以及重现所需的最少量代码/配置。 (ref: https://stackoverflow.com/help/minimal-reproducible-example ) (参考: https://stackoverflow.com/help/minimal-reproducible-example

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM