Skip to content
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

Prometheus does not install under minikube/podman #63

Open
fredrikaverpil opened this issue Nov 27, 2023 · 0 comments
Open

Prometheus does not install under minikube/podman #63

fredrikaverpil opened this issue Nov 27, 2023 · 0 comments

Comments

@fredrikaverpil
Copy link

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant