You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- 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):
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).
0 commit comments