linkerd / linkerd-viz

Top-line service metrics dashboard for Linkerd 1.
Apache License 2.0
111 stars 32 forks source link

Prometheus does not install under minikube/podman #63

Open fredrikaverpil opened 10 months ago

fredrikaverpil commented 10 months ago

Problem description

As reported in Slack, prom/prometheus does not install properly if you are running minikube with podman.

image

Error: ImageInspectError
  Warning  InspectFailed  3m58s (x259 over 128m)  kubelet            Failed to inspect image "prom/prometheus:v2.47.0": rpc error: code
 = Unknown desc = short-name "prom/prometheus:v2.47.0" did not resolve to an alias and no unqualified-search registries are defined in 
"/etc/containers/registries.conf"

The reason for this is that only when running minikube with podman, there is no unqualified search registries. If you instead run minikube with docker, this just works without any issues.

Expected behavior

I have to say I'm not entirely sure. I think I would want podman to provide these unqualified search registries out of the box. But on the other hand, maybe it would be good if linkerd was friendly enough to specify the prometheus dependency prefixed with the intended search registry?

Workaround

  1. Log into minikube with minikube ssh.
  2. Run sudo vi /etc/containers/registries.conf.
  3. Add unqualified-search-registries = ["docker.io", "quay.io"].
  4. Restart minikube with minikube stop && minikube start.