[英]Not able to access app deployed on kubernetes cluster
I am getting following error while accessing the app deployed on Azure kubernetes service 访问Azure kubernetes服务上部署的应用程序时出现以下错误
{
"kind": "Status",
"apiVersion": "v1",
"metadata": {},
"status": "Failure",
"message": "forbidden: User \"system:anonymous\" cannot get path \"/\"",
"reason": "Forbidden",
"details": {},
"code": 403
}
I have followed all steps as given here https://docs.microsoft.com/en-us/azure/aks/tutorial-kubernetes-prepare-app 我已按照此处给出的所有步骤进行操作https://docs.microsoft.com/zh-cn/azure/aks/tutorial-kubernetes-prepare-app
I know that this is something to do with authentication and RBAC, but i don't know what exactly is wrong and where should i make changes. 我知道这与身份验证和RBAC有关,但是我不知道到底是什么问题以及应该在哪里进行更改。
Just follow the steps in the link you posted. 只需按照您发布的链接中的步骤进行即可。 You will be successful in finishing that.
您将成功完成该任务。 The destination of each step below:
以下每个步骤的目标:
You just need these four steps to run the application on AKS. 您只需要执行以下四个步骤即可在AKS上运行该应用程序。 Then get the IP address through the command
kubectl get service azure-vote-front --watch
like the step 4. If you can not access the application, check your steps carefully again. 然后,通过命令
kubectl get service azure-vote-front --watch
获取IP地址,如步骤4所示。如果无法访问该应用程序,请再次仔细检查您的步骤。
Also, you can check all the pods status through the command kubectl describe pods
or one pod with kubectl describe pod podName
. 同样,您可以通过命令
kubectl describe pods
或带有kubectl describe pod podName
一个Pod检查所有Pod的状态。
Update 更新
I test with the image you provide and the result here: 我用您提供的图片和结果进行测试:
And you can get the service information and know which port you should use to browse. 您可以获取服务信息,并知道应该使用哪个端口浏览。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.