kubernetes-sigs / prometheus-adapter

An implementation of the custom.metrics.k8s.io API using Prometheus
Apache License 2.0
1.88k stars 551 forks source link

Failed to pull image "quay.io/coreos/k8s-prometheus-adapter-amd64:v0.4.1" #661

Open chakpongchung opened 2 months ago

chakpongchung commented 2 months ago

What happened?:

k describe pod custom-metrics-apiserver-59f5f69696-np2zs -n monitoring

Events:
  Type     Reason   Age                     From     Message
  ----     ------   ----                    ----     -------
  Warning  Failed   12m (x195 over 29h)     kubelet  Failed to pull image "quay.io/coreos/k8s-prometheus-adapter-amd64:v0.4.1": [DEPRECATION NOTICE] Docker Image Format v1 and Docker Image manifest version 2, schema 1 support is disabled by default and will be removed in an upcoming release. Suggest the author of quay.io/coreos/k8s-prometheus-adapter-amd64:v0.4.1 to upgrade the image to the OCI Format or Docker Image manifest v2, schema 2. More information at https://docs.docker.com/go/deprecated-image-specs/

What did you expect to happen?:

successfully install prometheus-adapter from helm and pull the images.

Please provide the prometheus-adapter config:

prometheus-adapter config

Please provide the HPA resource used for autoscaling:

HPA yaml

Please provide the HPA status:

Please provide the prometheus-adapter logs with -v=6 around the time the issue happened:

prometheus-adapter logs

Anything else we need to know?:

Environment:

M1 Mac

 % kubectl version
Client Version: v1.30.0
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.29.2
k8s-ci-robot commented 2 months ago

This issue is currently awaiting triage.

If prometheus-adapter contributors determine this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes-sigs/prow](https://github.com/kubernetes-sigs/prow/issues/new?title=Prow%20issue:) repository.
TheMeier commented 2 months ago

That version is ancient, latest is registry.k8s.io/prometheus-adapter/prometheus-adapter v0.12.0

chakpongchung commented 2 months ago

looks like the problematic image chosen is from installing the following

$ helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
$ helm repo update
$ helm install my-release prometheus-community/prometheus-adapter

does not work with aarch64 ISA. E.g. M1/2/3 mac. Maybe there is a way to update the image version without changing the command above? If so, how?