A fellow Sitecorian reached out to me for help on an issue related to Sitecore pod deployments in Kubernetes. They built a web application based on Sitecore 10.4 Headless SXA on Azure Kubernetes Services Cluster and used Azure DevOps for CICD>
The Problem
We found that the latest code is not getting released to our Sitecore pods.
We checked the release pipelines and Deploy Application Specifications steps has logs that mentioned that cm and cd pods are unchanged which means it did not find any differences in the build deployed to Sitecore pods and the build downloaded in pipeline.
The Solution
We discussed this with our Sitecore rep and he mentioned this is a known issue with Kuberenetes and it occurs as latest tag is used for fetching images from Container Repository. These images get cached and there are chances that the latest image is not picked correctly from Container Registry.
I tried googling for it and I found the following stackoverflow link talks about similar issue - https://stackoverflow.com/questions/56821629/kubernetes-engine-pod-deployment-not-updating-to-the-latest-image
To mitigate this, we updated our yamls to fetch the image using latest build number tag instead of latest tags. This helped us fix the issue and the developers did not report the issue anymore.
Hope it helps you!
Comments
Post a Comment