Azure / karpenter-provider-azure

AKS Karpenter Provider
Apache License 2.0
376 stars 57 forks source link

failed to resolve reference "mcr.microsoft.com/aks/karpenter/controller:latest #496

Closed abhishek-baranwal closed 1 week ago

abhishek-baranwal commented 1 week ago

Version

Karpenter Version: v0.0.0

Kubernetes Version: v1.0.0

Expected Behavior

Hi team, while using this helm chart we are not able to pull the docker image, its failing with below error

docker run -it --rm mcr.microsoft.com/aks/karpenter/controller /bin/bash
Unable to find image 'mcr.microsoft.com/aks/karpenter/controller:latest' locally
docker: Error response from daemon: failed to resolve reference "mcr.microsoft.com/aks/karpenter/controller:latest": mcr.microsoft.com/aks/karpenter/controller:latest: not found.
See 'docker run --help'.

though its working for other images

 docker run -it --rm mcr.microsoft.com/azurelinux/base/nginx:1 /bin/bash

Unable to find image 'mcr.microsoft.com/azurelinux/base/nginx:1' locally
1: Pulling from azurelinux/base/nginx
25c2aa39953f: Download complete
3f61ac909e65: Download complete
700766794894: Download complete
bf91f2b93eeb: Download complete
fc90c0809940: Download complete
Digest: sha256:a69031ae155177063df515ad53ec0bb52ed4c8f0e00346fc30a018cf81c146b5
Status: Downloaded newer image for mcr.microsoft.com/azurelinux/base/nginx:1
root [ / ]# exit
exit

Actual Behavior

It should pull the image anywhere either in AKS or local docker pull

Steps to Reproduce the Problem

docker pull mcr.microsoft.com/aks/karpenter/controller

Resource Specs and Logs

Unable to find image 'mcr.microsoft.com/aks/karpenter/controller:latest' locally docker: Error response from daemon: failed to resolve reference "mcr.microsoft.com/aks/karpenter/controller:latest": mcr.microsoft.com/aks/karpenter/controller:latest: not found. See 'docker run --help'.

Community Note

tallaxes commented 1 week ago

Try mcr.microsoft.com/aks/karpenter/controller:0.5.4 (we don't publish latest tag).

abhishek-baranwal commented 1 week ago

@tallaxes Do we have tag/dockerfile details anywhere in mcr so that we can those as well ?

https://mcr.microsoft.com/

abhishek-baranwal commented 1 week ago

@tallaxes Ok tahnks its wrorking now, but can you please share the dockerfile which we can use to build our own docker image, to incorporate security changes and not rely on public repository?

tallaxes commented 1 week ago

Tags in the MCR portal: No, these are currently not discoverable via portal (we can look into changing that). To determine available tags please use releases from the repo: image tag will be the same as release tag, but without "v" in front.

Dockerfile: The provider is currently not using dockerized build; it uses hack/release scripts, via corresponding GitHub action. (These - would be a good starting point if you want to create dockerized build.) Other ways of building from source yourself would be devcontainer + Skaffold.

Security: If you are aware of any security issues in the repo, please report them following the guidance in SECURITY.md.

abhishek-baranwal commented 1 week ago

Alright thanks for your response , I'll close this issue now