I was using bitbucket pipeline to deploy the docker image to AKS cluster.
at 1st time of creation of pods i used this command
kubectl apply -f deployment.yaml
but for every commit the docker images are being updated and pushed to ACR but the deployment was unchanged.
who can i rollout this deployment for every commit.
please anyone can suggest any solution.
thanks in advance
You need to:
So you are missing the second step.
If you are using the same tag, e.g. image:latest (which is a bad practice), then you'll need to set imagePullPolicy to always. See here for similar question.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.