Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

rollout deployment in bitbucket pipeline

Deleted user May 14, 2020

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

1 answer

1 accepted

0 votes
Answer accepted
Radek Antoniuk
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 14, 2020

You need to:

  • build new docker image and tag it as new version
  • update the deployment.yaml with new image:tag
  • apply

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events