Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Latest commit

 

History

History
37 lines (29 loc) · 2.14 KB

File metadata and controls

37 lines (29 loc) · 2.14 KB

Kubernetes

Releasing to non-production

  1. Wait for the Docker build to complete on CircleCI (https://circleci.com/gh/ministryofjustice/<repo_name>) for the feature branch.
  2. Approve the pending staging deployment on CircleCI. Watch the how-to video:
    How to approve staging deployments
  3. 🚨 Unfortunately, our deployment process does not yet fail the build if the deployment fails. To see if the deploy was successful, follow Kubernetes deployments, pods and events for any feedback:
    kubectl --namespace <name-space-name> get pods,deployments -o wide
    kubectl --namespace <name-space-name> get events
    

Releasing to production

  1. Please make sure you tested on a non-production environment before merging.
  2. Merge your feature branch pull request to master.
  3. Wait for the Docker build to complete on CircleCI (https://circleci.com/gh/ministryofjustice/<repo_name>/tree/master) for the master branch.
  4. Approve the pending staging deployment on CircleCI (see 'Releasing to non-production above' video for more info).
  5. Approve the pending production deployment on CircleCI.
  6. 🚨 Unfortunately, our deployment process does not yet fail the build if the deployment fails. To see if the deploy was successful, follow Kubernetes deployments, pods and events for any feedback:
    kubectl --namespace <name-space-name> get pods,deployments -o wide
    kubectl --namespace <name-space-name> get events
    

Rolling back

  1. Check the rollout history with kubectl rollout history deployment/<deployment> --namespace=<name-space-name>
  2. Roll back to the previous version with kubectl rollout undo deployment/<deployment> --namespace=<name-space-name>

📝 The <name-space-name> is the applications kubernetes namespace. kubectl get namespaces | grep laa-cla gets you a list of laa-cla namespaces

📝 The <deployment>> is the kubernetes deployment name. kubectl -n <namespace> get deployments gets you the deployment name