kubernetes / ingress-nginx

Ingress NGINX Controller for Kubernetes
https://kubernetes.github.io/ingress-nginx/
Apache License 2.0
17.54k stars 8.26k forks source link

Error while pulling the docker image #5998

Closed rgachet closed 4 years ago

rgachet commented 4 years ago

Hi,

NGINX Ingress controller version: 0.34.1

Kubernetes version (use kubectl version): Client Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.1", GitCommit:"b1b29978270dc22fecc592ac55d903350454310a", GitTreeState:"clean", BuildDate:"2018-07-17T18:53:20Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.10", GitCommit:"89d8075525967c7a619641fabcb267358d28bf08", GitTreeState:"clean", BuildDate:"2020-06-23T02:52:37Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}

Environment:

Microsoft Azure - AKS

What happened:

I'm trying to deploy an ingress controller using Helm (v2) chart. The command I use is

helm install stable/nginx-ingress --namespace ingress --set rbac.create=false --set controller.service.loadBalancerIP=$PUBLIC_IP --set controller.service.externalTrafficPolicy=Local --set controller.image.tag=0.34.1

Everything runs fine (IP is associated) but the pod failed when trying to get the image for registry:

kubectl get pods -n ingress

NAME                                                             READY     STATUS             RESTARTS   AGE
esteemed-catfish-nginx-ingress-controller-XXXXX-kwj4x       0/1       ImagePullBackOff   0          10m
esteemed-catfish-nginx-ingress-default-backend-XXXXX-lkzdl   1/1       Running            0          10m

kubectl get pods -n ingress

Events:
  Type     Reason     Age              From                                        Message
  ----     ------     ----             ----                                        -------
  Normal   Scheduled  <unknown>        default-scheduler                           Successfully assigned ingress/esteemed-catfish-nginx-ingress-controller-57b85454b4-kwj4x to aks-nodepool1-XXXXX-vmss000001
  Normal   BackOff    1m (x6 over 3m)  kubelet, aks-nodepool1-XXXXX-vmss000001  Back-off pulling image "us.gcr.io/k8s-artifacts-prod/ingress-nginx/controller:0.34.1"
  Normal   Pulling    1m (x4 over 3m)  kubelet, aks-nodepool1-XXXXX-vmss000001  Pulling image "us.gcr.io/k8s-artifacts-prod/ingress-nginx/controller:0.34.1"
  Warning  Failed     1m (x4 over 3m)  kubelet, aks-nodepool1-XXXXX-vmss000001  Failed to pull image "us.gcr.io/k8s-artifacts-prod/ingress-nginx/controller:0.34.1": rpc error: code = Unknown desc = Error response from daemon: manifest for us.gcr.io/k8s-artifacts-prod/ingress-nginx/controller:0.34.1 not found: manifest unknown: Failed to fetch "0.34.1" from request "/v2/k8s-artifacts-prod/ingress-nginx/controller/manifests/0.34.1".
  Warning  Failed     1m (x4 over 3m)  kubelet, aks-nodepool1-XXXXX-vmss000001  Error: ErrImagePull
  Warning  Failed     1m (x7 over 3m)  kubelet, aks-nodepool1-XXXXX-vmss000001  Error: ImagePullBackOff

Anything else we need to know:

/kind bug

aledbf commented 4 years ago

--set controller.image.tag=0.34.1

Should be --set controller.image.tag=v0.34.1

Please check the Changelog

rgachet commented 4 years ago

Thank you, you are right, i used to set a version without 'v' prefix until 0.32.0 without problem 👍