-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[kube-state-metrics] Failing to pull image error 403 Forbidden - pod in ImagePullBackOff #2421
Comments
We have the same issue. Any news on that? |
@jankosecki if this helps I downgraded the chart version to 15.1.0. to make it work. Please keep us posted if this starts working for you. |
We are also experiencing this issue since last week. We have a multi-region deployment, and this affects us only in AWS's
@gabrielbac Do you mean downgrading |
Works for me:
|
Interesting. I'm unable to pinpoint what exactly is the issue. I tried it on an EC2 instance in
Could it be that this request is reaching a faulty mirror somehow? (if it even works that way, that is) Also @monotek , I noticed that the docker pull command didn't actually pull a new image, since it was already present on your system. |
|
Thanks @monotek ! I came across this doc for registry.k8s.io, which explains why we might be seeing this discrepancy.
It's possible this might be affecting traffic only originating from AWS in |
@ritvikgautam |
Turns out the images are stored in S3. We had a VPC endpoint policy blocking this. Closing this issue |
@gabrielbac can you share what you updated your S3 VPC Endpoint policy to to allow access? We are experiencing the same issue but we cannot remove the policy for security reasons. EDIT: in case anyone else stumbles on this, we were able to get past this by using the following arn in our S3 policy: |
This problems occurred AWS ap-northeast-2 region. (South Korea, Seoul) The pod status docker pull registry.k8s.io/kube-state-metrics/kube-state-metrics:v2.8.0
Error response from daemon: Head "https://asia-northeast2-docker.pkg.dev/v2/k8s-artifacts-prod/images/kube-state-metrics/kube-state-metrics/manifests/v2.8.0": dial tcp: lookup asia-northeast2-docker.pkg.dev on 10.0.0.2:53: no such host |
@amall015 Thank you so much. I also added |
@amall015 Thank you very much; I've added this arn (arn:aws:s3:::prod-registry-k8s-io*) to my endpoint policy and the issue was resolved. |
Describe the bug a clear and concise description of what the bug is.
Getting this error starting today. Any idea what could be happening?
Failed to pull image "registry.k8s.io/kube-state-metrics/kube-state-metrics:v2.6.0": rpc error: code = Unknown desc = failed to pull and unpack image "registry.k8s.io/kube-state-metrics/kube-state-metrics:v2.6.0": failed to copy: httpReadSeeker: failed open: unexpected status code https://registry.k8s.io/v2/kube-state-metrics/kube-state-metrics/blobs/sha256:ec6e2d871c544073e0d0a2448b23f98a1aa47b7c60ae9d79ac5d94d92ea45949: 403 Forbidden
What's your helm version?
v3.9.3
What's your kubectl version?
v4.5.4
Which chart?
kube-state-metrics
What's the chart version?
2.5.0
What happened?
cant pull image
What you expected to happen?
No response
How to reproduce it?
No response
Enter the changed values of values.yaml?
No response
Enter the command that you execute and failing/misfunctioning.
The deployment is done via Terraform
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: