Skip to content

Commit be83552

Browse files
authored
Merge pull request #75 from uc-cdis/doc/deployment
doc: proper deployment with kube-setup-cohort-middleware scripts
2 parents 5a20d45 + 92e41f8 commit be83552

File tree

1 file changed

+19
-27
lines changed

1 file changed

+19
-27
lines changed

README.md

+19-27
Original file line numberDiff line numberDiff line change
@@ -143,33 +143,25 @@ curl -d '{"variables":[{"variable_type": "custom_dichotomous", "cohort_ids": [1,
143143

144144
# Deployment steps
145145

146-
## Deployment to QA
147-
148-
- Add config .yaml as a secret:
149-
- If the config secret does not yet exist, create it [with name expected in this deployment .yaml file](https://github.com/uc-cdis/cloud-automation/blob/master/kube/services/cohort-middleware/cohort-middleware-deploy.yaml):
150-
```
151-
kubectl create secret generic <secret_name_here> \
152-
--from-file=./test.yaml \
153-
```
154-
where `./test.yaml` follows the general structure of `./config/development.yaml`.
155-
156-
- Check if it worked with:
157-
```
158-
kubectl get secrets/<secret_name_here> -o yaml
159-
```
160-
- PRs to `master` get the docker image built on quay (via github action). See https://quay.io/repository/cdis/cohort-middleware?tab=tags
161-
- The following config file determines which branch or tag is used on QA: https://github.com/uc-cdis/gitops-qa/blob/master/qa-mickey.planx-pla.net/manifest.json
162-
- If testing on QA:
163-
- ssh to QA machine
164-
- run the steps below:
165-
```bash
166-
echo "====== Pull manifest without going into directory ====== "
167-
git -C ~/cdis-manifest pull
168-
echo "====== Update the manifest configmaps ======"
169-
gen3 kube-setup-secrets
170-
echo "====== Deploy ======"
171-
gen3 roll cohort-middleware
172-
```
146+
## Deployment to Gen3
147+
148+
For deployment in Gen3 simply use [`kube-setup-cohort-middleware`](https://github.com/uc-cdis/cloud-automation/blob/master/gen3/bin/kube-setup-cohort-middleware.sh) script:
149+
150+
```
151+
gen3 kube-setup-cohort-middleware
152+
```
153+
154+
The script will use `ohdsi` database credentials and will result in `cohort-middleware-g3auto` Kubernetes secret.
155+
156+
### Roll cohort-middleware
157+
158+
To roll cohort-middleware (in case of version update), full `kube-setup-cohort-middleware` is not required:
159+
160+
```
161+
gen3 roll cohort-middleware
162+
```
163+
164+
This will take care of all the secrets via [`g3auto`](https://github.com/uc-cdis/cloud-automation/blob/master/doc/secrets.md#overview).
173165

174166
## Test the endpoints on QA
175167

0 commit comments

Comments
 (0)