I am trying to deploy a service to AKS which is dockerized and its image is in a container registry on Azure but I am facing these errors , I have used a service principal to provide necessary pull authentications.
kubectl logs -f new-service-deployment-6cc77c6b5-4mdxwError from server (BadRequest): container "new-service" in pod "new-service-deployment-6cc77c6b5-4mdxw" is waiting to start: trying and failing to pull imageand this is my yml file for deployment;
apiVersion: apps/v1kind: Deploymentmetadata: name: new-service-deploymentspec: replicas: 2 selector: matchLabels: app: new-service template: metadata: labels: app: new-service spec: containers: - name: new-service image: debugdemoimage.azurecr.io/new-service:latest ports: - containerPort: 80 imagePullPolicy: Always
Can some one please guide me with this?