1

Checking the latest image used in the metrics-server Github repo, the tag used is v0.5.0, for arm64 I would usually add arm64 to the image name and pull it.

But the image doesn't exist and doing an inspect to the base image shows that its arch is amd64.

In google's registry the latest image is v0.3.6. So I'm not sure if support for arm64 has continued or staled.

Yasen
  • 4,241
  • 1
  • 16
  • 25
amnestor
  • 21
  • 3

2 Answers2

4

There's no need to append arm64 starting v0.3.7, the image support multiple architectures. See official FAQ here with complete image url.

gohm'c
  • 13,492
  • 1
  • 9
  • 16
  • Using the latest version without adding arm64 to the image name worked. The metrics-server pod is running fine. I was concerned because the output of the docker inspect command showed amd64. I think that that is the default value when one uses buildkit for building multiarch images. – amnestor Sep 19 '21 at 18:22
1

There are two tricks:

  1. Please, check the metrics-server/README.md.

Correct registry is k8s.gcr.io

image.repository    k8s.gcr.io/metrics-server/metrics-server
  1. Seems there isn't latest tag in the registry.

So, docker run --rm k8s.gcr.io/metrics-server/metrics-server doesn't work.

But with version it works fine:

docker run --rm k8s.gcr.io/metrics-server/metrics-server:v0.5.0 --version
v.0.5.0
Yasen
  • 4,241
  • 1
  • 16
  • 25