Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1995] Set deployment stragegy to recreate for non web deployments #114

Conversation

saliceti
Copy link
Member

@saliceti saliceti commented Aug 22, 2024

Context

Background workers may have issues if 2 versions run at the same time. Since they don't receive user traffic, it does not matter if they are stopped while getting replaced.

Changes proposed in this pull request

Use the Recreate deployment strategy when the deployment is not a web app

Guidance to review

Deploy DFE-Digital/apply-for-teacher-training#9742 alternatively:

  • make review_aks deploy PR_NUMBER=9742 IMAGE_TAG=daf97fd0483cf5e9e2d885621a209b8f3da703e5
  • make review_aks deploy PR_NUMBER=9742 IMAGE_TAG=main

Observe pods:

  • watch -n 1 "kubectl -n bat-qa get pods | grep 9742"

The web app creates a new one before terminating the initial one. The workers simply terminate and create.

Checklist

  • I have performed a self-review of my code, including formatting and typos
  • I have cleaned the commit history
  • I have added the Devops label
  • I have attached the pull request to the trello card

Background workers may have issues if 2 versions run at the same time.
Since they don't receive user traffic, it does not matter if they are
stopped while getting replaced.
@saliceti
Copy link
Member Author

@saliceti saliceti merged commit ba44de3 into main Aug 23, 2024
3 checks passed
@saliceti saliceti deleted the 1995-set-deployment-stragegy-to-recreate-for-non-web-deployments branch August 23, 2024 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants