can we bind AKS cluster to our own Azure Container Registry?

Bharani 40 Reputation points
2024-05-24T18:13:28.6766667+00:00

How can we bind AKS cluster to our own Azure Container Registry?

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
461 questions
0 comments No comments
{count} votes

Accepted answer
  1. v-vvellanki-MSFT 4,920 Reputation points Microsoft Vendor
    2024-05-24T18:53:59.5333333+00:00

    Hi @Bharani ,

    Thanks for contacting Microsoft Q&A platform.

    Assuming that you want to integrate your AKS cluster with your own Azure Container Registry and ensure that images from this registry only can be used to create pods on the aforementioned AKS cluster, you can:

    For more information please check this document. For how-to on enforcing Azure Policy for Kubernetes please check out this document.

    Hope this helps you.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Azar 22,870 Reputation points MVP
    2024-05-24T18:38:59.7133333+00:00

    Hi there Bharani

    Thanks for using QandA platform.

    Guess this is possible, Create a new AKS cluster and integrate with an existing ACR using the az aks create command with the --attach-acr parameter. This command allows you to authorize an existing ACR in your subscription and configures the appropriate AcrPull role for the managed identity.

    For a detailed info follow the documentation below

    https://video2.skills-academy.com/en-us/azure/aks/cluster-container-registry-integration?tabs=azure-cli

    If this helps kindly accept the answer thanks much.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.