Skip to content

Production Deployment

Dann edited this page Nov 4, 2020 · 15 revisions

Production Release

Create a git tag

  1. git tag should be made from main branch. the ref needs to have a green CI build (meaning it's artifact was pushed to harbor)
  2. git tag should follow the following regex. /v\d+/\d+\d+*/ if we need to make changes to this regex, we should update CI to reflect that. On a tag event CI will re-tag the previously validated image, with the git tag.

Update the config repo

CI submits a PR to the config Repo, if for some reason we need to to this manually, the steps are below

git clone [email protected]:psu-stewardship/scholarsphere-config.git 
cd scholarsphere-config 
git checkout -b v0.0.0
# open argocd-prod/prod.yaml
# change spec.source.helm.values.image.tag to v0.0.0
git add argocd-prod/prod.yaml
git commit -m 'release v0.0.0'
git push -u origin v0.0.0
# create PR 
gh pr create

Merge PR from scholarsphere-config repo

Once Merged, Validate the deployment

Validate with kubectl

make sure you're using the prod context for kubectl (https://sites.psu.edu/dltdocs/?p=4954) change to the scholarsphere namespace

kubens scholarsphere
kubectl get pods -l app.kubernetes.io/name=scholarsphere -o custom-columns=NAME:.metadata.name,STATUS:.status.phase,IMAGE:'.spec.containers[0].image'

##### check the apps health 

curl https://scholarsphere.k8s.libraries.psu.edu/health/all.json | jq 
Clone this wiki locally