<p>First i have created the docker image and created kubernetes cluster in azure container service.
Then tag and push the image to my repository, but while pulling my image from azure container registry to kubernetes cluster the pod are created but in status it shows imagepullback off</p>

<p>The yaml file for basic api image</p>

<pre><code>**apiVersion: v1
kind: Pod
metadata:
  name: myapis
spec:
  containers:
    - name: myapis
      image: ciqsample.azurecr.io/myapis
  imagePullSecrets:
    - name: samplekey**
</code></pre>

<p>You might need to attach with container registry itself.</p>
<pre><code>az aks update -n myAKSCluster -g myResourceGroup --attach-acr $MYACR
</code></pre>
<p>$MYACR -&gt; name of the container registry without &quot;.azurecr.io&quot; postfix</p>
