<p>I am getting following error while accessing the app deployed on Azure kubernetes service</p>

<pre><code>{
  "kind": "Status",
  "apiVersion": "v1",
  "metadata": {},
  "status": "Failure",
  "message": "forbidden: User \"system:anonymous\" cannot get path \"/\"",
  "reason": "Forbidden",
  "details": {},
  "code": 403
}
</code></pre>

<p>I have followed all steps as given here <a href="https://learn.microsoft.com/en-us/azure/aks/tutorial-kubernetes-prepare-app" rel="nofollow noreferrer">https://learn.microsoft.com/en-us/azure/aks/tutorial-kubernetes-prepare-app</a></p>

<p>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.</p>

Preetam
<p>Just follow the steps in the <a href="https://learn.microsoft.com/en-us/azure/aks/tutorial-kubernetes-prepare-app" rel="nofollow noreferrer">link</a> you posted. You will be successful in finishing that. The destination of each step below:</p>

<ol>
<li>Create the image and make sure it can work without any error.</li>
<li>Create an Azure Container Registry and push the image into the registry.</li>
<li>Create a Service Principal for the AKS to let it just can pull the image from the registry.</li>
<li>Change the yaml file and make it pull the image from the Azure Registry, then crate pods in the AKS nodes.</li>
</ol>

<p>You just need these four steps to run the application on AKS. Then get the IP address through the command <code>kubectl get service azure-vote-front --watch</code> like the step 4. If you can not access the application, check your steps carefully again.</p>

<p>Also, you can check all the pods status through the command <code>kubectl describe pods</code> or one pod with <code>kubectl describe pod podName</code>.</p>

<p><strong>Update</strong></p>

<p>I test with the image you provide and the result here:</p>

<p><a href="https://i.stack.imgur.com/5nybH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5nybH.png" alt="enter image description here"></a></p>

<p>And you can get the service information and know which port you should use to browse.</p>

<p><a href="https://i.stack.imgur.com/M8jdY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/M8jdY.png" alt="enter image description here"></a></p>
