Kubernetes: Unable to access to kubernetes dashboard

时间:2018-08-22 13:55:48

标签: azure kubernetes continuous-deployment azure-kubernetes azure-aks

I add bitnami.bitnami/rabbitmq into my acr.
In VSO release pipeline, I add 2 tasks kubectl run & expose, looks like below.

kubectl run rabbitmq --image xxxxxx.azurecr.io/bitnami.bitnami/rabbitmq:3.7.7 --port=15672
kubectl expose deployment rabbitmq --type=LoadBalancer --port=15672 --target-port=15672

After save and release it, everything is successful, but now I can't proxy into my dashboard using

az aks browse -g {groupname} -n {k8sname}

When I remove the above 2 task in my release, I able to connect to my dashboard. Can someone explain to me what going wrong, how to troubleshoot it.

1 个答案:

答案 0 :(得分:1)

您可以检查Pod在Azure Kubernetes群集中是否运行良好。如果一切正常。然后,请确保您当前的操作系统是否具有浏览器。 String命令需要浏览器才能打开执行仪表板。

使用命令az aks browse -g {groupname} -n {k8sname}获得证书后,您可以使用发布的命令在另一个OS中打开k8s仪表板。当然,您需要先执行az aks get-credentials -g {groupname} -n {k8sname}

如果一切正常,您可以尝试使用此link