How to set image tag in AKS manifest file

Rajamannar A K 86 Reputation points
2022-06-29T08:06:05.773+00:00

I run a CI/CD setup were new image is pushed into ACR and for rollingupdates I want to tag the new image id into the manifest file. any help on this would be great.

   spec:  
         terminationGracePeriodSeconds: 30  
         hostname: mssqlinst  
         securityContext:  
           fsGroup: 10001  
         containers:  
         - name: mssql  
           image: aksdeeppod..azurecr.io/deepvoice:20220406  

In the above 20220406 I want to get the latest tag from ACR rather than the hard coded value.

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
461 questions
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,146 questions
{count} votes

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.