Combined repository for the timetracker application developed for medi.
This project is managed with helm v3
-
Create shared namespace
kubectl create ns medi
-
Copy secrets from 1Password
medi-secrets
to- deploy/secrets.yaml
-
Deploy secrets
kubectl apply -n medi -f deploy/secrets.yaml
-
Deploy Helm chart
cd deploy && helmfile apply
Push to master branch will trigger new deployment on k8s.
Requirements: make sure the
.env
file exists in thebackend
folder with the environment variables fromdeploy/secrets.yaml
Commands:
# dump the timetracker collection from mongoDB atlas cluster
# and upload it to amazon s3 bucket
yarn db:backup
# download latest backup from the specified amazon s3 bucket
# and restore it to mongoDB atlas cluster
# bucket is optional and per default set to medi-timetracker-backup
yarn db:restore <bucket>