-
Notifications
You must be signed in to change notification settings - Fork 7
Production Deployment
Dann edited this page Nov 4, 2020
·
15 revisions
- 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) - 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.
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
- Project Page: https://argocd.k8s.libraries.psu.edu/applications/scholarsphere
- App Details: https://argocd.k8s.libraries.psu.edu/applications/scholarsphere?resource=&operation=false&node=argoproj.io%2FApplication%2Fargocd%2Fscholarsphere%2F0 Under App Details you should see Images: ScholarSphere should be running v0.0.0 You can filter to show only pods, and all pods should be green.
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